From 3ca11ccb8bec6bbffd1bf955b462715f5e557792 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Thu, 6 Feb 2025 09:06:21 +0100 Subject: [PATCH] Use site.Copyright in footer and not custom params. --- README.md | 3 --- layouts/_default/baseof.html | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 69010d7..259cf5e 100644 --- a/README.md +++ b/README.md @@ -261,9 +261,6 @@ params: # generate the `BreadcrumbListing`. cookieConsent: true # Show cookie consent form, default false. 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" description: "" # Set site description, used in meta tags and JSON-LD favicon: "" # Relative path to favicon in json feed, no leading slash. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e04b637..2767a28 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -46,7 +46,7 @@ {{ partial "footer.html" . }} {{ else -}} {{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}} -

{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}© {{ site.Title }}{{ end }}

+

{{ with site.Copyright }}{{ . | markdownify }}{{ else }}© {{ site.Title }}{{ end }}

{{ with $.Param "footer" }}

{{ . | markdownify }}

{{ end }} {{ if $.Param "poweredby" }}

Powered by Hugo and the Zen theme.

{{ end }} {{ end -}}