mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* 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
20 lines
705 B
HTML
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>
|