#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:
parent
6d4b5c8df4
commit
192b6d361e
1 changed files with 8 additions and 0 deletions
|
|
@ -9,5 +9,13 @@
|
|||
<a href="https://themes.gohugo.io/hugo-scroll/" target="_blank" rel="noopener">Hugo Scroll</a> template
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if ne .Params.enableGitInfo false }}
|
||||
{{- if $.GitInfo -}}
|
||||
<section>
|
||||
version: {{ .Lastmod.Format "2006-01-02" }} | #{{ .GitInfo.AbbreviatedHash }}
|
||||
</section>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue