show hugo Site.Copyright message if set, otherwise Site.Title

This commit is contained in:
James McMurry 2023-08-10 12:03:45 -05:00
parent 13568d8ff0
commit eb4bc4dcb3

View File

@ -5,7 +5,12 @@
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
{{ .Site.Params.footer.since }} -
{{ end }}
{{ now.Format "2006" }} {{ .Site.Title }}
{{ now.Format "2006" }}
{{ if .Site.Copyright }}
{{ .Site.Copyright }}
{{ else }}
{{ .Site.Title }}
{{ end }}
</section>
<section class="powerby">