diff --git a/bin/get-last-commit.sh b/bin/get-last-commit.sh new file mode 100755 index 0000000..17dd6c9 --- /dev/null +++ b/bin/get-last-commit.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +export HUGOxPARAMSxGITxLAST_COMMITxAUTHORNAME=$(git log -1 --format=%an) +export HUGOxPARAMSxGITxLAST_COMMITxDATE=$(git log -1 --format=%cI) +export HUGOxPARAMSxGITxLAST_COMMITxHASH=$(git log -1 --format=%H) +export HUGOxPARAMSxGITxLAST_COMMITxSUBJECT=$(git log -1 --format=%s) diff --git a/themes/v2/layouts/partials/footer.html b/themes/v2/layouts/partials/footer.html index b400771..358b8c4 100644 --- a/themes/v2/layouts/partials/footer.html +++ b/themes/v2/layouts/partials/footer.html @@ -1,9 +1,9 @@