Update footer so copyright start year is displayed and evaluated.

This commit is contained in:
2025-04-23 15:30:02 +01:00
parent 0634876b75
commit 7d26f6cf48

View File

@@ -3,10 +3,10 @@
<small>
&copy; Copyright {{ .SiteName }}
{{ $currentYear := now.Year }}
{{ if eq .YearStart $currentYear }}
{{ if eq .CopyrightYearStart $currentYear }}
{{ $currentYear }}
{{ else }}
{{ .YearStart }} - {{ $currentYear }}
{{ .CopyrightYearStart }} - {{ $currentYear }}
{{ end }}
All rights reserved.
| <a href="/legal/privacy">Privacy Policy</a> |