alguidelines/layouts/partials/page-meta-lastmod.html
2022-02-27 16:37:58 +01:00

11 lines
No EOL
414 B
HTML

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