Add copyright year ranges

This commit is contained in:
Elnu 2022-02-18 13:33:27 -08:00
parent b21b208d85
commit 31d581de0c
4 changed files with 4 additions and 2 deletions

View file

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

View file

@ -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) }}.