mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
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:
parent
13568d8ff0
commit
51e0ec7f99
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue