footer.html 734 B

12345678910111213141516
  1. <footer class="footer">
  2. <section class="container">
  3. {{ with .Site.Params.footercontent }}
  4. <p>{{.}}</p>
  5. {{ end }}
  6. {{ if not .Site.Params.hideCopyright }} © {{ now.Format "2006" }}{{ end }}
  7. {{ if not .Site.Params.hideCredits }}
  8. {{ if not .Site.Params.hideCopyright }} · {{ end }}
  9. {{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
  10. {{ end }}
  11. {{ if .Site.Params.commit }}
  12. {{ if or (not .Site.Params.hideCredits) (not .Site.Params.hideCopyright) }} · {{ end }}
  13. [<a href="{{ .Site.Params.commit }}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]
  14. {{ end }}
  15. </section>
  16. </footer>