Add AuthorName - just because we can ;-)
This commit is contained in:
parent
c41d4e9e24
commit
8503a84609
1 changed files with 11 additions and 0 deletions
11
layouts/partials/page-meta-lastmod.html
Normal file
11
layouts/partials/page-meta-lastmod.html
Normal 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 -}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue