34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
<footer class="footer">
|
|
<section class="container">
|
|
{{ with .Site.Params.footercontent | safeHTML }}
|
|
<p>{{.}}</p>
|
|
{{ end }}
|
|
{{ if not .Site.Params.hideCopyright }}
|
|
<span class="footer-item">
|
|
{{ with .Site.Params.since }}
|
|
© {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
|
|
{{ else }}
|
|
© {{ now.Year }}
|
|
{{ end }}
|
|
{{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ if not .Site.Params.hideCredits }}
|
|
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
|
<span class="footer-item">
|
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
|
</span>
|
|
{{ end }}
|
|
<span id="cs-mode-container" class="footer-item">
|
|
[<button type="button" id="cs-mode-button" class="cs-mode-button">Dark Mode: <span id="cs-mode-button-state" class="cs-mode-state">Light</span></button>]
|
|
</span>
|
|
{{ if .Site.Params.talkyardServerUrl }}
|
|
<span class="footer-item comment-attr">Comments by <a class="footer-link" href="https://www.talkyard.io">Talkyard</a>.</span>
|
|
{{ end }}
|
|
{{ if .Site.Params.commit }}
|
|
{{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
|
|
[<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
|
|
{{ end }}
|
|
</section>
|
|
</footer>
|