Use site.Copyright in footer and not custom params.
This commit is contained in:
parent
ed5a99e9e5
commit
3ca11ccb8b
2 changed files with 1 additions and 4 deletions
|
|
@ -261,9 +261,6 @@ params:
|
||||||
# generate the `BreadcrumbListing`.
|
# generate the `BreadcrumbListing`.
|
||||||
cookieConsent: true # Show cookie consent form, default false.
|
cookieConsent: true # Show cookie consent form, default false.
|
||||||
contact: "info@example.org"
|
contact: "info@example.org"
|
||||||
copyright: "This site is licensed under a
|
|
||||||
[Creative Commons Attribution-ShareAlike 4.0 International
|
|
||||||
License](https://creativecommons.org/licenses/by-sa/4.0/)."
|
|
||||||
dateformat: "" # Set the date format, default to "2 January, 2006"
|
dateformat: "" # Set the date format, default to "2 January, 2006"
|
||||||
description: "" # Set site description, used in meta tags and JSON-LD
|
description: "" # Set site description, used in meta tags and JSON-LD
|
||||||
favicon: "" # Relative path to favicon in json feed, no leading slash.
|
favicon: "" # Relative path to favicon in json feed, no leading slash.
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||||
<p>{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
<p>{{ with site.Copyright }}{{ . | markdownify }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
||||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end }}
|
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue