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
This commit is contained in:
mike
2022-01-30 22:25:57 +01:00
committed by GitHub
parent ebf9ad01cd
commit 720271a5bf
31 changed files with 90 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
{{ 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>]