From 324991d82ef26798ed5842a6fe03eabc798ff497 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Thu, 27 May 2021 00:13:05 +0300 Subject: modify art page to display thumbnails thumbnails are currently created using shell script and require imagemagick installed on the server. i know it's stupid, but i think that including thumbnails to repo is also stupid. maybe later i replace this script with actual jekyll plugin, but for this i'll need to familiarize myself with ruby. but now i use following addition to the git hook on the server: ``` [ -f "$TMP_GIT_CLONE/art/thumbs.sh" ] && { dir="$PWD" cd "$TMP_GIT_CLONE/art/" && sh thumbs.sh && cd "$dir" } ``` it happens after cloning to remote repo and before building with bundle. overall, this is a bodge now, it recompiles all thumbnails every time due to quirks in my current setup. --- _sass/main.scss | 1 + 1 file changed, 1 insertion(+) (limited to '_sass') diff --git a/_sass/main.scss b/_sass/main.scss index 5ec3a08..477a4f3 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -217,6 +217,7 @@ ul { flex-flow: row wrap; .art-img { + margin: 0.5em 0; img { width: 100%; height: auto; -- cgit v1.2.3