Using GitInfo

@rdwatters thanks for your help and time. I read various things and it looks like .GitInfo works on pages, and, updates .Page.Lastmod from the git commit date. I have not figured out how to use index.md for my index file yet, so I guess that is why this “wasn’t working” for the page I was looking at - my top page.

But, it works on content pages. This is what I came up with as a little proof of concept:

 {{ if .IsPage }}<small class="gray"><em>Updated: {{ .Page.Lastmod }}, Version: {{ .GitInfo.AbbreviatedHash }}</em></
  small>{{ end }}

Hopefully it helps someone trying to implement this.