mirror of https://github.com/luizdepra/hugo-coder.git

Ka-Wai Lin
02.54.2020 e613e3ba00469dfb92a914ee0b0a4e489b1489cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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 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>