Update footer so copyright start year is displayed and evaluated.
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
<small>
|
||||
© 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> |
|
||||
|
||||
Reference in New Issue
Block a user