diff options
-rwxr-xr-x | beam-funnies.sh | 12 | ||||
-rw-r--r-- | content/funnies.md | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rwxr-xr-x | upload-funnies.sh | 4 |
4 files changed, 15 insertions, 4 deletions
diff --git a/beam-funnies.sh b/beam-funnies.sh new file mode 100755 index 0000000..3f16da6 --- /dev/null +++ b/beam-funnies.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +# first let's remove those pesky webp +cd ~/funnies +magick mogrify -format JPEG *.webp +rm *webp + +# and beam them up scotty +rsync -rtvzP ~/funnies/ mms@michal.sapka.me:/var/www/htdocs/funnies/2023/$(date +%F) + +# clean up +rm * diff --git a/content/funnies.md b/content/funnies.md index c53546c..2cc0721 100644 --- a/content/funnies.md +++ b/content/funnies.md @@ -18,7 +18,9 @@ If you want, just come back every so often and see if there is a new funny! ### Funnies archives +│ └── [funnies](/funnies/c/) + │ └── [2023](/funnies/c/2023) [current] ### Tech stuff for nerds diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 87800d5..9addbf0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -77,6 +77,7 @@ {{ partial "back_nav" . }} <br><br> + </main> diff --git a/upload-funnies.sh b/upload-funnies.sh deleted file mode 100755 index 6c683c5..0000000 --- a/upload-funnies.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -rsync -rtvzP ~/funnies/ mms@michal.sapka.me:/var/www/htdocs/funnies/2023/$(date +%F) -rm ~/funnies/* |