Add copyright year ranges
This commit is contained in:
parent
b21b208d85
commit
31d581de0c
4 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,7 @@ disableKinds = ["taxonomy", "taxonomyTerm", "RSS"]
|
||||||
FontAwesomeKit = "c3c3b565dc"
|
FontAwesomeKit = "c3c3b565dc"
|
||||||
MatomoURL = "matomo.elnu.com"
|
MatomoURL = "matomo.elnu.com"
|
||||||
MatomoSiteId = "4"
|
MatomoSiteId = "4"
|
||||||
|
CopyrightStart = 2021
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
challenges = "/:filename"
|
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>
|
<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>
|
<br>
|
||||||
Submissions are copyright © {{ 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 © {{ 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 }}–{{ end }}{{ dateFormat "2006" now }}
|
|
@ -1,2 +1,2 @@
|
||||||
Copyright © {{ dateFormat "2006" now }} <b>{{ .Site.Title }}</b>. All rights reserved.<br>
|
Copyright © {{ 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) }}.
|
Site last regenerated with <a href="https://gohugo.io/" target="_blank">Hugo</a> at {{ partial "time.html" (dict "Date" now) }}.
|
Loading…
Add table
Reference in a new issue