diff options
Diffstat (limited to 'layouts/partials/post')
-rw-r--r-- | layouts/partials/post/copyright.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html index cd42d68..35a7609 100644 --- a/layouts/partials/post/copyright.html +++ b/layouts/partials/post/copyright.html @@ -6,7 +6,10 @@ </p> <p class="copyright-item"> <span class="item-title">{{ T "lastMod" }}</span> - <span class="item-content">{{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</span> + <span class="item-content"> + {{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} + {{ with .GitInfo }}<a href="{{ $.Site.Params.gitRepo }}/commit/{{ .Hash }}" title="{{ .Subject }}">({{ .AbbreviatedHash }})</a>{{ end }} + </span> </p> {{ if $.Site.Params.linkToMarkDown -}} {{ with $.OutputFormats.Get "markdown" -}} @@ -29,4 +32,4 @@ </p> {{- end }} </div> -{{- end }}
\ No newline at end of file +{{- end }} |