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

Luiz F. A. de Prá
29.37.2020 acef79480ddd506a4246540c69d4ad82610698ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{ if not .Site.Params.hideFooter | default false }}
  <footer class="footer">
    <section class="container">
      {{ with .Site.Params.footercontent | safeHTML }}
        <p>{{ . }}</p>
      {{ end }}
      {{ if not .Site.Params.hideCopyright }}
        ©
        {{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
          {{ .Site.Params.since }} -
        {{ end }}
        {{ now.Year }}
        {{ with .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>
{{ end }}