File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{{ $page := .Page -}}
22{{ with .Site.Params.copyright -}}
3- {{ $fromYear := "" -}}
4- {{ $toYear := "" -}}
3+ {{ $yearDisplay := "" -}}
54 {{ $authors := "" -}}
65 {{ if reflect.IsMap . -}}
7- {{ $fromYear = .from_year -}}
8- {{ $toYear = .to_year -}}
6+ {{ $to := .to_year | default now.Year -}}
7+ {{ $yearDisplay = $to -}}
8+ {{ with .from_year -}}
9+ {{ if ne (string .) (string $to) -}}
10+ {{ $yearDisplay = printf "%v–%v" . $to -}}
11+ {{ end -}}
12+ {{ end -}}
913 {{ $authors = .authors -}}
1014 {{ else -}}
1115 {{ $authors = . -}}
1216 {{ end -}}
1317
1418 < span class ="td-footer__copyright "> ©
15- {{ with $fromYear -}}
16- {{ . }}–
17- {{- end -}}
18- {{ $toYear | default now.Year }}
19+ {{ $yearDisplay }}
1920 < span class ="td-footer__authors ">
2021 {{- $authors
2122 | default (printf "%s Authors" ($.Site.Title | default "Site"))
You can’t perform that action at this time.
0 commit comments