Allow overriding copyright line via .Site.Copyright

This commit is contained in:
Cristian Klein 2020-09-02 10:33:13 +02:00
parent bfc381df05
commit 1a1d2dda0a

View file

@ -1,5 +1,5 @@
<footer>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ .Site.Title }}</b></a>.
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>.
{{- range .Site.Menus.footer }}
<a href="{{ .URL }}"><b>{{ .Name }}</b></a>.
{{- end }}