mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
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.
This commit is contained in:
parent
22a9f3fc98
commit
e07028cb90
1 changed files with 0 additions and 12 deletions
|
@ -1,4 +1,3 @@
|
||||||
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
|
|
||||||
{{- $authorEmail := "" }}
|
{{- $authorEmail := "" }}
|
||||||
{{- with site.Params.author }}
|
{{- with site.Params.author }}
|
||||||
{{- if reflect.IsMap . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
@ -6,14 +5,8 @@
|
||||||
{{- $authorEmail = . }}
|
{{- $authorEmail = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
{{- with site.Author.email }}
|
|
||||||
{{- $authorEmail = . }}
|
|
||||||
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
|
|
||||||
{{- $authorName := "" }}
|
{{- $authorName := "" }}
|
||||||
{{- with site.Params.author }}
|
{{- with site.Params.author }}
|
||||||
{{- if reflect.IsMap . }}
|
{{- if reflect.IsMap . }}
|
||||||
|
@ -23,11 +16,6 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $authorName = . }}
|
{{- $authorName = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
{{- with site.Author.name }}
|
|
||||||
{{- $authorName = . }}
|
|
||||||
{{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $pctx := . }}
|
{{- $pctx := . }}
|
||||||
|
|
Loading…
Reference in a new issue