From 077bd3eac70cd0b7470d0ff0aeb2ee2813831628 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 7 Feb 2025 23:44:23 -0800 Subject: [PATCH] Remove paige.copyright config --- README.md | 1 - exampleSite/hugo.toml | 2 +- layouts/partials/paige/site-footer.html | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 28b954be..1296e9da 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,6 @@ There is a single parameter object with sensible defaults that can be overridden [paige] color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windows color_scheme = "auto" # Must be "auto", "dark", or "light" -copyright = "" # Appears below the page, above the site credit, if set. Defaults to the site copyright. credit = 'Paige Theme' date_format = ":date_long" # Hugo date format description = "" # Site description. Appears above the menu, below the site title, if set. diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 84a7409a..25d407c8 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -4,6 +4,7 @@ timezone = "America/Los_Angeles" titlecasestyle = "Go" [languages.en] +copyright = "© Will Faught" languagecode = "en-us" languagedirection = "ltr" languagename = "English" @@ -11,7 +12,6 @@ title = "Paige" weight = 10 [languages.en.params.paige] -copyright = "© Will Faught" description = "Powerful, pliable pixel perfection" [markup.goldmark.renderer] diff --git a/layouts/partials/paige/site-footer.html b/layouts/partials/paige/site-footer.html index 236c0a0a..e663fa95 100644 --- a/layouts/partials/paige/site-footer.html +++ b/layouts/partials/paige/site-footer.html @@ -1,6 +1,6 @@ {{ $page := . }} -{{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.disable_copyright" | not) }} +{{ $copyright := site.Copyright | markdownify | and ($page.Param "paige.site.disable_copyright" | not) }} {{ $credit := $page.Param "paige.credit" }} {{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }}