Files
site/themes/minimo/layouts/partials/footer/copyright.html
2021-09-06 13:02:12 -04:00

19 lines
532 B
HTML

<div class='copyright'>
<p>
{{- with .Site.Copyright -}}
{{ . }}
{{- else -}}
{{- with .Site.Params.copyright -}}
{{- with .startyear -}}
{{- if lt ( int . ) now.Year -}}
{{- $.Scratch.Set "copyrightStartYear" . -}}
{{- end -}}
{{- end -}}
{{ .prefix | markdownify }} &copy; {{ with ( $.Scratch.Get "copyrightStartYear" ) }}{{ . }}-{{ end }}{{ now.Year }} {{ or .holder $.Site.Title | markdownify }} {{ .suffix | markdownify }}
{{- end -}}
{{- end -}}
</p>
</div>