From 49fed6b379fada14ba87bdec69de967a2438dd4f Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Mon, 6 Mar 2023 12:00:01 -0500 Subject: [PATCH] Show last overall commit (not per-file) --- bin/get-last-commit.sh | 6 ++++++ themes/v2/layouts/partials/footer.html | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 bin/get-last-commit.sh 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 @@