summaryrefslogtreecommitdiffstats
path: root/layouts/partials/site-author.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-04-15 09:24:56 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2024-04-15 09:29:16 +0200
commit7422a9886aa6674fe45c1d75cd52cdd2b35df355 (patch)
tree95d267d2ff825c6bacaf7fb94a6beece1e965ec7 /layouts/partials/site-author.html
parent0e72a35876bac43e4df62524e3d423375787096e (diff)
downloadgohugo-theme-ed-7422a9886aa6674fe45c1d75cd52cdd2b35df355.tar.gz
Add deprecation warning regarding site.author
Diffstat (limited to 'layouts/partials/site-author.html')
-rw-r--r--layouts/partials/site-author.html1
1 files changed, 1 insertions, 0 deletions
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 -}}