mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
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:
@@ -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>]
|
||||
|
||||
Reference in New Issue
Block a user