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 theme: hugo-theme-stack
paginate: 5 paginate: 5
title: Example Site title: Example Site
copyright: Example Person
languages: languages:
en: en:

View File

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