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

Codruț Constantin Gușoi
02.10.2020 911a39528b036e8f367cf3741b2842259da4db69
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<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>