Add AuthorName - just because we can ;-)

This commit is contained in:
waldo1001 2022-02-27 16:37:58 +01:00
parent c41d4e9e24
commit 8503a84609

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 -}}