diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-09-19 13:00:39 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-09-19 13:39:40 +0200 |
commit | e07028cb90901931cd71a210f9d0b237d1bcc99f (patch) | |
tree | 3613be796dafcdd59f47b61f4674f9444b9f3630 | |
parent | 22a9f3fc98b4c6ebcade7ad11bd231e978aa58cd (diff) | |
download | hugo-e07028cb90901931cd71a210f9d0b237d1bcc99f.tar.gz hugo-e07028cb90901931cd71a210f9d0b237d1bcc99f.zip |
tpl: Remove RSS deprecation site.Author check
The check itself creates a warning which I guess was not intended.
We could possibly make that work, but it has been deprecated since Hugo 0.98, so just remove the usage.
-rw-r--r-- | tpl/tplimpl/embedded/templates/_default/rss.xml | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tpl/tplimpl/embedded/templates/_default/rss.xml b/tpl/tplimpl/embedded/templates/_default/rss.xml index 2e505f1bc..2df2cae6e 100644 --- a/tpl/tplimpl/embedded/templates/_default/rss.xml +++ b/tpl/tplimpl/embedded/templates/_default/rss.xml @@ -1,4 +1,3 @@ -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} {{- $authorEmail := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} @@ -6,14 +5,8 @@ {{- $authorEmail = . }} {{- end }} {{- end }} -{{- else }} - {{- with site.Author.email }} - {{- $authorEmail = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} - {{- end }} {{- end }} -{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} {{- $authorName := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} @@ -23,11 +16,6 @@ {{- else }} {{- $authorName = . }} {{- end }} -{{- else }} - {{- with site.Author.name }} - {{- $authorName = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} - {{- end }} {{- end }} {{- $pctx := . }} |