Files
hugo-coder-timeline/layouts/partials/footer.html
Glenn Feunteun 17fe8de72b Rework commit info display in footer (#277)
* 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
2020-03-18 16:33:04 -03:00

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>