Merge pull request #138 from microsoft/waldo/somechanges

Add AuthorName - just because we can ;-)
This commit is contained in:
Henrik Helgesen 2022-02-27 10:59:14 -08:00 committed by GitHub
commit 58db3a3a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
{{ if and (.GitInfo) (.Site.Params.github_repo) -}}
<div class="text-muted mt-5 pt-3 border-top">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
{{ with .GitInfo }}: {{/* Trim WS */ -}}
<a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
{{- .Subject }} ({{ .AbbreviatedHash }}) {{- /* Trim WS */ -}}
</a>
by {{ .AuthorName }}
{{- end }}
</div>
{{ end -}}