feat: Add last updated info to footer

Use GitInfo
main
earnest ma 2021-11-30 09:54:28 -05:00
parent e9dbe9de47
commit 092291f33f
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,10 @@
<p>{{ .Site.Copyright }}</p> <p>{{ .Site.Copyright }}</p>
<p>
Last updated: {{ .Lastmod.Format "January 2, 2006" }}
{{ with .GitInfo }}<a class="hide-child link primary-color" href="{{$.Site.Params.GitRepo}}/commit/{{ .Hash }}">
{{ .Subject }} ({{ .AbbreviatedHash }})</a>
{{ end }}</p>
<nav> <nav>
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a> <a href="{{ .URL }}">{{ .Name }}</a>