summaryrefslogtreecommitdiffhomepage
path: root/include/footer.gsp
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
commitbda44e93541fa478abf3ce4b3461f026a90fa8cb (patch)
treea62a7e1d456effe914a77b45f66485c3e8bfd92d /include/footer.gsp
parentced3ed9ddde25614bbc9777a5d546eee2a44a2e0 (diff)
Move the site from HTML to GSP
Diffstat (limited to 'include/footer.gsp')
-rw-r--r--include/footer.gsp14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/footer.gsp b/include/footer.gsp
new file mode 100644
index 0000000..f613fcf
--- /dev/null
+++ b/include/footer.gsp
@@ -0,0 +1,14 @@
+m4_define(⁨m4___id__⁩, m4_esyscmd(git rev-list -1 HEAD m4___caller__))
+small {-
+ Page last edited:
+ @a
+ href="https://git.thomasvoss.com/www.thomasvoss.com/commit?id=m4___id__"
+ target="_blank"
+ {-
+ m4_esyscmd(
+ git log -1 --pretty='format:%cI' m4___caller__ \
+ | ifne xargs date +'%A %d %B %Y — %T %Z' -d \
+ | ifne -n echo 'No commit yet…'
+ )
+ }
+}