summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-07-30 04:43:05 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-07-30 04:43:05 +0200
commita5a672016c620cc10be199b8f90917cf29966a14 (patch)
tree1c3d8cb114acfa72ea3e7061c03d533da08a1f38
parent753db351f5ecd1ecd61cd6435add4a83afd80d3f (diff)
Link to last commit diff in footer
-rw-r--r--include/footer.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/footer.html b/include/footer.html
index 2e55314..9557e17 100644
--- a/include/footer.html
+++ b/include/footer.html
@@ -1,7 +1,13 @@
+m4_define(`m4___id__', m4_esyscmd(git rev-list -1 HEAD m4___caller__))
<small>
Page last edited:
- m4_esyscmd(
- git log -1 --pretty='format:%cI' m4___caller__ \
- | xargs date +'%A %d %B %Y — %T %Z' -d
- )
+ <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__ \
+ | xargs date +'%A %d %B %Y — %T %Z' -d
+ )
+ </a>
</small>