hugo-coder-fork/layouts/partials/footer.html

27 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2018-03-01 01:38:59 +00:00
<footer class="footer">
<section class="container">
2019-05-12 23:41:26 +00:00
{{ 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 }}
2020-02-02 19:52:12 +00:00
<span id="cs-mode-container" class="cs-mode-container">
[<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.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 }}
2018-03-01 01:38:59 +00:00
</section>
</footer>