#126: Update footer.html to contain version information

Format and extract version information from GitInfo - 
uncommitted pages generate a bogus date.
This commit is contained in:
P. Ottlinger 2023-03-29 21:21:11 +02:00 committed by GitHub
parent 6d4b5c8df4
commit 192b6d361e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,5 +9,13 @@
<a href="https://themes.gohugo.io/hugo-scroll/" target="_blank" rel="noopener">Hugo Scroll</a> template <a href="https://themes.gohugo.io/hugo-scroll/" target="_blank" rel="noopener">Hugo Scroll</a> template
</section> </section>
{{ end }} {{ end }}
{{ if ne .Params.enableGitInfo false }}
{{- if $.GitInfo -}}
<section>
version: {{ .Lastmod.Format "2006-01-02" }} | #{{ .GitInfo.AbbreviatedHash }}
</section>
{{- end -}}
{{ end }}
</div> </div>
</footer> </footer>