From 7422a9886aa6674fe45c1d75cd52cdd2b35df355 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 15 Apr 2024 09:24:56 +0200 Subject: Add deprecation warning regarding site.author --- layouts/partials/site-author.html | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/partials/site-author.html') diff --git a/layouts/partials/site-author.html b/layouts/partials/site-author.html index 1ddd06c..cd6dbf4 100644 --- a/layouts/partials/site-author.html +++ b/layouts/partials/site-author.html @@ -29,6 +29,7 @@ For more information, see: https://github.com/gohugoio/hugo/releases/tag/v0.124. {{- $siteAuthor = merge $siteAuthor site.Params.author -}} {{- else if site.Author -}} {{- $siteAuthor = merge $siteAuthor site.Author -}} + {{- warnf "The author key in site configuration is deprecated. Use site.params.author instead." }} {{- end -}} {{- return $siteAuthor -}} -- cgit v1.2.3