mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* Rework commit info display in footer Use Hugo .GitInfo to get Hash and AbbreviatedHash Remove leading · because it renders as .· when credits are displayed * Update CONTRIBUTORS.md
25 lines
889 B
HTML
25 lines
889 B
HTML
<footer class="footer">
|
|
<section class="container">
|
|
{{ with .Site.Params.footercontent | safeHTML }}
|
|
<p>{{.}}</p>
|
|
{{ end }}
|
|
{{ if not .Site.Params.hideCopyright }}
|
|
{{ with .Site.Params.since }}
|
|
© {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
|
|
{{ else }}
|
|
© {{ now.Year }}
|
|
{{ end }}
|
|
{{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
|
|
{{ end }}
|
|
{{ if not .Site.Params.hideCredits }}
|
|
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
|
{{ end }}
|
|
{{ if .Site.Params.commit }}
|
|
{{ if .GitInfo }}
|
|
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
|
{{ end }}
|
|
{{ end }}
|
|
</section>
|
|
</footer>
|