Skip to content

Commit e07028c

Browse files
committed
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.
1 parent 22a9f3f commit e07028c

File tree

1 file changed

+0
-12
lines changed
  • tpl/tplimpl/embedded/templates/_default

1 file changed

+0
-12
lines changed

tpl/tplimpl/embedded/templates/_default/rss.xml

-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
21
{{- $authorEmail := "" }}
32
{{- with site.Params.author }}
43
{{- if reflect.IsMap . }}
54
{{- with .email }}
65
{{- $authorEmail = . }}
76
{{- end }}
87
{{- end }}
9-
{{- else }}
10-
{{- with site.Author.email }}
11-
{{- $authorEmail = . }}
12-
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
13-
{{- end }}
148
{{- end }}
159

16-
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
1710
{{- $authorName := "" }}
1811
{{- with site.Params.author }}
1912
{{- if reflect.IsMap . }}
@@ -23,11 +16,6 @@
2316
{{- else }}
2417
{{- $authorName = . }}
2518
{{- end }}
26-
{{- else }}
27-
{{- with site.Author.name }}
28-
{{- $authorName = . }}
29-
{{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
30-
{{- end }}
3119
{{- end }}
3220

3321
{{- $pctx := . }}

0 commit comments

Comments
 (0)