{{ $page := .Page -}} {{ with .Site.Params.copyright -}} {{ $fromYear := "" -}} {{ $toYear := "" -}} {{ $authors := "" -}} {{ if reflect.IsMap . -}} {{ $fromYear = .from_year -}} {{ $toYear = .to_year -}} {{ $authors = .authors -}} {{ else -}} {{ $authors = . -}} {{ end -}} © {{ with $fromYear -}} {{ . }}– {{- end -}} {{ $toYear | default now.Year }} {{- $authors | default (printf "%s Authors" ($.Site.Title | default "Site")) | $page.RenderString -}} {{- /* Trim WS */ -}} {{- with T "footer_all_rights_reserved" -}} {{- . -}} {{- end }} {{- else -}} {{ with .Site.Copyright -}} {{/* For historical reasons we process this as HTML rather than markdown. */ -}} {{- . | safeHTML -}} {{- end -}} {{ end -}}