davideisinger.com

My personal website
Log | Files | Refs | README

commit 02ca54916daca899c8794097532bc7d4a0a1888f
parent 79d7a21b401e3bb180b994c0e402de9cf2de1fee
Author: David Eisinger <[email protected]>
Date:   Sat,  4 Mar 2023 14:43:34 -0500

Add render date + commit SHA

Diffstat:
Mconfig.toml | 1+
Mthemes/v2/layouts/partials/footer.html | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/config.toml b/config.toml @@ -2,3 +2,4 @@ baseURL = 'https://davideisinger.com/' languageCode = 'en-us' title = 'David Eisinger' theme = 'v2' +enableGitInfo = true diff --git a/themes/v2/layouts/partials/footer.html b/themes/v2/layouts/partials/footer.html @@ -1,6 +1,13 @@ <footer> <hr> + Rendered {{ now | dateFormat "2006-01-02 15:04:05 MST" }} from + {{ with .GitInfo }} + <a href="https://github.com/dce/davideisinger.com/commit/{{ .Hash }}"> + {{ substr .Hash 0 7}} + </a> + {{ end }} + <br> <a href="https://v1.davideisinger.com">Version 1</a> • <a href="/index.xml">Feed</a> • Copyright &copy; {{ now.Format "2006" }} David Eisinger