Add commit in footer

This commit is contained in:
ekzyis 2024-04-14 09:04:13 +02:00
parent d08e056fcb
commit 71e27bc424
3 changed files with 10 additions and 2 deletions

5
deploy
View File

@ -5,6 +5,9 @@
set -e
RSYNC_OPTS="-avh --delete"
COMMIT=$(git rev-parse --short HEAD)
sed -i -e "s/^commit\s*=.*$/commit = \"$COMMIT\"/" hugo.toml
hugo
rsync $RSYNC_OPTS --dry-run public/ ekzy.is:/var/www/ek
@ -13,3 +16,5 @@ echo
read -p "Continue deploy? [yn] " yn
echo
[ "$yn" == "y" ] && rsync $RSYNC_OPTS public/ ekzy.is:/var/www/ek
git checkout hugo.toml

View File

@ -9,3 +9,6 @@ theme = 'holy'
name = "About"
url = "/about/"
weight = 10
[params]
commit = "000000"

@ -1 +1 @@
Subproject commit daa6b7f43d6142dce9d3136b5592ac8cbedf2a14
Subproject commit fd4e3d5074f05113a6168ac2505057af84390770