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/center.html b/layouts/partials/footer/center.html index 88a5f8e83..a12ada49c 100644 --- a/layouts/partials/footer/center.html +++ b/layouts/partials/footer/center.html @@ -6,7 +6,7 @@ {{ if ne .Site.Params.ui.footer_about_disable nil -}} {{ warnf "Config parameter '.params.ui.footer_about_disable' is DEPRECATED, use '.params.ui.footer_about_enable' instead." -}} -{{ end }} +{{ end -}} {{ if or .Site.Params.ui.footer_about_enable (eq .Site.Params.ui.footer_about_disable false) -}} {{ with .Site.GetPage "about" -}} 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 */ -}}