From 51e0ec7f99c659c5730e79f313ff79a07d8aff78 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 12 Aug 2023 10:29:56 +0100 Subject: [PATCH] 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 --- exampleSite/config.yaml | 1 + layouts/partials/footer/footer.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index c1b48dd..78354f2 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -3,6 +3,7 @@ languageCode: en-us theme: hugo-theme-stack paginate: 5 title: Example Site +copyright: Example Person languages: en: diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index c8d30cb..a677482 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -5,7 +5,7 @@ {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }} {{ .Site.Params.footer.since }} - {{ end }} - {{ now.Format "2006" }} {{ .Site.Title }} + {{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}