diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7879bd4..a19e393 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,5 +9,13 @@ Hugo Scroll template {{ end }} + + {{ if ne .Params.enableGitInfo false }} + {{- if $.GitInfo -}} +
+ version: {{ .Lastmod.Format "2006-01-02" }} | #{{ .GitInfo.AbbreviatedHash }} +
+ {{- end -}} + {{ end }}