diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bc5fd14a..50b47836f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,7 +61,7 @@ For details concerning all footer changes, see [#1818]. - Hugo config option `params.copyright`, previously a string, can now also be a map with the following optional fields: `authors`, `from_year`, `to_year`. When unset, `to_year` defaults to the year that the site built. The default - `authors` is "Site Authors" and this field is rendered as markdown. + `authors` is " Authors" and this field is rendered as markdown. - If `params.copyright` is unset, then the [site `copyright`] option will be used and rendered as markdown, "as is" — with no year is added. diff --git a/layouts/partials/footer/copyright.html b/layouts/partials/footer/copyright.html index 0baac22e4..8962fb87a 100644 --- a/layouts/partials/footer/copyright.html +++ b/layouts/partials/footer/copyright.html @@ -17,7 +17,9 @@ {{- end -}} {{ $toYear | default now.Year }} - {{- $authors | default "Site Authors" | $page.RenderString -}} + {{- $authors + | default (printf "%s Authors" ($.Site.Title | default "Site")) + | $page.RenderString -}} {{- /* Trim WS */ -}}