diff options
Diffstat (limited to 'themes/24-unification/layouts/_default/rss.xml')
-rw-r--r-- | themes/24-unification/layouts/_default/rss.xml | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/themes/24-unification/layouts/_default/rss.xml b/themes/24-unification/layouts/_default/rss.xml index 8df6fa9..ece24e6 100644 --- a/themes/24-unification/layouts/_default/rss.xml +++ b/themes/24-unification/layouts/_default/rss.xml @@ -1,34 +1,34 @@ -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} -{{- $authorEmail := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .email }} - {{- $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.email in favor of site.Params.author.email */}} --> +<!-- {{- $authorEmail := "" }} --> +<!-- {{- with site.Params.author }} --> +<!-- {{- if reflect.IsMap . }} --> +<!-- {{- with .email }} --> +<!-- {{- $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 . }} - {{- with .name }} - {{- $authorName = . }} - {{- end }} - {{- 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 }} +<!-- {{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} --> +<!-- {{- $authorName := "" }} --> +<!-- {{- with site.Params.author.name }} --> +<!-- {{- if reflect.IsMap . }} --> +<!-- {{- with .name }} --> +<!-- {{- $authorName = . }} --> +<!-- {{- end }} --> +<!-- {{- 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 := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} |