aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_config.yml9
-rw-r--r--_includes/art-menu.html2
-rw-r--r--_sass/main.scss20
-rw-r--r--art/photos/fern-background.jpegbin0 -> 4615820 bytes
-rw-r--r--art/photos/fern_and_ladybug.jpegbin0 -> 3706377 bytes
-rw-r--r--art/photos/moss_landscape.jpgbin0 -> 2403595 bytes
-rwxr-xr-xart/thumbs.sh8
-rw-r--r--post-receive.example31
8 files changed, 53 insertions, 17 deletions
diff --git a/_config.yml b/_config.yml
index ad87808..4a3dd1e 100644
--- a/_config.yml
+++ b/_config.yml
@@ -8,8 +8,17 @@ exclude:
- LICENSE
- README.md
- art/thumbs.sh
+ - aaoth_new_post.sh
+ - post-receive.example
- templates
+# sadly wildcards don't work
+keep_files:
+ - art/photos/thumbs
+ - art/renders/thumbs
+ - art/drawings/thumbs
+ - art/logos/thumbs
+
collections:
music_releases:
output: true
diff --git a/_includes/art-menu.html b/_includes/art-menu.html
index 0cb16fb..01a455b 100644
--- a/_includes/art-menu.html
+++ b/_includes/art-menu.html
@@ -10,7 +10,7 @@
</span>
</a>
<div class="art-menu-item-img">
- <img src="{{ artthumbs.first }}">
+ <img src="{{ artthumbs | sample }}">
</div>
</li>
{% endif %}
diff --git a/_sass/main.scss b/_sass/main.scss
index 1dc0093..a1008f1 100644
--- a/_sass/main.scss
+++ b/_sass/main.scss
@@ -413,7 +413,7 @@ footer {
}
&-year {
position: sticky;
- top: 25%;
+ top: 6em;
padding: 0.2em 0.3em;
border-radius: 1em;
float: right;
@@ -473,19 +473,11 @@ footer {
&-sidebar {
padding: 0;
}
- // &-list {
- // &-item {
- // &-mask {
- // width: 120px;
- // height: 120px;
- // }
- // &-img {
- // width: 120px;
- // height: 120px;
- // }
- // }
-
- // }
+ &-release {
+ &-year {
+ top: 8em;
+ }
+ }
}
}
diff --git a/art/photos/fern-background.jpeg b/art/photos/fern-background.jpeg
new file mode 100644
index 0000000..75b6481
--- /dev/null
+++ b/art/photos/fern-background.jpeg
Binary files differ
diff --git a/art/photos/fern_and_ladybug.jpeg b/art/photos/fern_and_ladybug.jpeg
new file mode 100644
index 0000000..b843dea
--- /dev/null
+++ b/art/photos/fern_and_ladybug.jpeg
Binary files differ
diff --git a/art/photos/moss_landscape.jpg b/art/photos/moss_landscape.jpg
new file mode 100644
index 0000000..06cde87
--- /dev/null
+++ b/art/photos/moss_landscape.jpg
Binary files differ
diff --git a/art/thumbs.sh b/art/thumbs.sh
index 758b0a9..3c1a633 100755
--- a/art/thumbs.sh
+++ b/art/thumbs.sh
@@ -28,9 +28,13 @@ for dir in $_img_dirs
do
cd "./$dir" || exit 1
- [ -d "$_thumbs_dir" ] || mkdir "$_thumbs_dir"
+ mkdir -p "$_thumbs_dir"
- _imgs="$(find . -maxdepth 1 -type f | cut -b 3-)"
+ _imgs="$(find . -maxdepth 1 \
+ -iname "*.jpg" -or \
+ -iname "*.jpeg" -or \
+ -iname "*.gif" -or \
+ -iname "*.png" -type f | cut -b 3-)"
for _img in $_imgs
do
_ext="${_img##*.}"
diff --git a/post-receive.example b/post-receive.example
new file mode 100644
index 0000000..7d5c48c
--- /dev/null
+++ b/post-receive.example
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# example git post-receive hook that i use to autobuild my website on push
+
+# setup paths
+export GEM_HOME=$HOME/gems
+export PATH=$GEM_HOME/bin:$PATH
+
+# set variables, change example.com to your website repo name
+GIT_REPO=$HOME/example.com.git
+TMP_GIT_CLONE=$HOME/tmp/example.com
+GEMFILE=$TMP_GIT_CLONE/Gemfile
+PUBLIC_WWW=/var/www/htdocs/example.com
+
+# change branch name to your main deploy branch
+git clone -b main "$GIT_REPO" "$TMP_GIT_CLONE"
+
+# build the site
+BUNDLE_GEMFILE=$GEMFILE bundle install
+BUNDLE_GEMFILE=$GEMFILE bundle exec jekyll build -s "$TMP_GIT_CLONE" -d "$PUBLIC_WWW"
+
+# genterate thumbnails
+{
+ cp "$TMP_GIT_CLONE/art/thumbs.sh" "$PUBLIC_WWW/art/thumbs.sh"
+ cd "$PUBLIC_WWW/art"
+ sh thumbs.sh
+ rm thumbs.sh
+}
+
+rm -Rf "$TMP_GIT_CLONE"
+exit