feat: allow footer copyright to be different to the site title (#839)

* Allow copyright to be different to the site title

* Add copyright to exampleSite
This commit is contained in:
Rich 2023-08-12 10:29:56 +01:00 committed by GitHub
parent 13568d8ff0
commit 51e0ec7f99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ languageCode: en-us
theme: hugo-theme-stack
paginate: 5
title: Example Site
copyright: Example Person
languages:
en:

View file

@ -5,7 +5,7 @@
{{ 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" }} {{ default .Site.Title .Site.Copyright }}
</section>
<section class="powerby">