Change RSS generation.
See https://discourse.gohugo.io/t/site-vs-site-vs-site/49252 and
b6df155eb8
and https://github.com/adityatelange/hugo-PaperMod/issues/1839
This commit is contained in:
@@ -9,14 +9,14 @@
|
|||||||
<language>{{.}}</language>
|
<language>{{.}}</language>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
{{ with site.Params.author.email }}
|
||||||
<managingEditor>
|
<managingEditor>
|
||||||
{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
|
{{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}}
|
||||||
</managingEditor>
|
</managingEditor>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ with .Site.Author.email }}
|
{{ with site.Params.author.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>
|
<webMaster>{{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}}</webMaster>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
{{ with site.Params.author.email }}<author>{{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>
|
<description>
|
||||||
{{ .Content | html }}
|
{{ .Content | html }}
|
||||||
|
|||||||
Reference in New Issue
Block a user