File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11{{ $page := .Page -}}
22{{ with .Site.Params.copyright -}}
3- {{ $fromYear := "" -}}
4- {{ $toYear := "" -}}
3+ {{ $yearRange := slice -}}
54 {{ $authors := "" -}}
65 {{ if reflect.IsMap . -}}
7- {{ $fromYear = .from_year -}}
8- {{ $toYear = .to_year -}}
6+ {{ with .from_year -}}
7+ {{ $yearRange = slice . -}}
8+ {{ end -}}
9+ {{ $yearRange = $yearRange
10+ | append (.to_year | default now.Year)
11+ | uniq -}}
912 {{ $authors = .authors -}}
1013 {{ else -}}
1114 {{ $authors = . -}}
1215 {{ end -}}
1316
1417 < span class ="td-footer__copyright "> ©
15- {{ with $fromYear -}}
16- {{ . }}–
17- {{- end -}}
18- {{ $toYear | default now.Year }}
18+ {{ delimit $yearRange "–" }}
1919 < span class ="td-footer__authors ">
2020 {{- $authors
2121 | default (printf "%s Authors" ($.Site.Title | default "Site"))
You can’t perform that action at this time.
0 commit comments