Add copyright year ranges

main
Elnu 3 years ago
parent b21b208d85
commit 31d581de0c

@ -10,6 +10,7 @@ disableKinds = ["taxonomy", "taxonomyTerm", "RSS"]
FontAwesomeKit = "c3c3b565dc"
MatomoURL = "matomo.elnu.com"
MatomoSiteId = "4"
CopyrightStart = 2021
[permalinks]
challenges = "/:filename"

@ -1,3 +1,3 @@
<a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank"><img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-sa.svg"></a>
<br>
Submissions are copyright &copy; {{ dateFormat "2006" now }} their respective submitters, and are licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.
Submissions are copyright &copy; {{ partial "copyright-years.html" . }} their respective submitters, and are licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.

@ -0,0 +1 @@
{{ if ne (dateFormat "2006" now | int) .Site.Params.CopyrightStart }}{{ .Site.Params.CopyrightStart }}&ndash;{{ end }}{{ dateFormat "2006" now }}

@ -1,2 +1,2 @@
Copyright &copy; {{ dateFormat "2006" now }} <b>{{ .Site.Title }}</b>. All rights reserved.<br>
Copyright &copy; {{ partial "copyright-years.html" . }} <b>{{ .Site.Title }}</b>. All rights reserved.<br>
Site last regenerated with <a href="https://gohugo.io/" target="_blank">Hugo</a> at {{ partial "time.html" (dict "Date" now) }}.
Loading…
Cancel
Save