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

Alphonse Mariya
10.56.2021 b93ac81256997ec490ad8d5847ae40c76a44f0ee
layouts/partials/footer.html
@@ -1,26 +1,15 @@
{{ 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 }}
<footer class="footer">
  <section class="container">
    ©
    {{ if (and .Site.Params.since (lt .Site.Params.since now.Year)) }}
      {{ .Site.Params.since }} -
    {{ end }}
    {{ now.Year }}
    {{ with .Site.Params.author }} {{ . }} {{ end }}
    ·
    {{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
    {{ if (and .Site.Params.commit .GitInfo) }}
      [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
    {{ end }}
  </section>
</footer>