{{- if or site.Params.footer .Params.editor }}
{{- with site.Params.footer -}} {{- $footerText := replace . "{year}" now.Year -}} {{- $footerText | safeHTML -}} {{- end -}}
{{- with .Params.editor }}{{ i18n "edited_by" . }}, {{- if not $.Params.Lastmod.IsZero -}} {{- $.Params.Lastmod.Format "2006" -}} {{- else -}} {{- now.Format "2006" -}} {{- end }}.
{{- end }}