diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-15 09:24:56 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2024-04-15 09:29:16 +0200 |
| commit | 7422a9886aa6674fe45c1d75cd52cdd2b35df355 (patch) | |
| tree | 95d267d2ff825c6bacaf7fb94a6beece1e965ec7 | |
| parent | 0e72a35876bac43e4df62524e3d423375787096e (diff) | |
| download | gohugo-theme-ed-7422a9886aa6674fe45c1d75cd52cdd2b35df355.tar.gz | |
Add deprecation warning regarding site.author
| -rw-r--r-- | layouts/partials/site-author.html | 1 |
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 -}} |
