Files
hugo-coder-timeline/layouts/partials/footer.html
mike 720271a5bf Add a license statement in the footer (#637)
* Add a license param in the config used in footer

Also adds initial EN and NL i18n statements referring to the license.

* Add Michiel to CONTRIBUTOR

* Add example text for i18n of `licensed_under`

* Add safeHTML filter to license value in the footer

Also updates the example config in the exampleSite config.toml to link
to Creative Commons.

* Fix separator dot in footer within License ifdef
2022-01-30 18:25:57 -03:00

20 lines
705 B
HTML

<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 }}
·
{{ if (and .Site.Params.license) }}
{{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }}
·
{{ 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>