plainify rss title and summary

This commit is contained in:
John Bowdre 2023-12-30 17:03:25 -06:00
parent 13fc5f8789
commit b9926cb5b3

View file

@ -32,7 +32,7 @@
</image> </image>
{{ range $pages }} {{ range $pages }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title | plainify }}</title>
<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.Params.Author.name }}<dc:creator>{{.}}</dc:creator>{{end}} {{ with .Site.Params.Author.name }}<dc:creator>{{.}}</dc:creator>{{end}}
@ -40,7 +40,7 @@
{{ range (.GetTerms "tags") }} {{ range (.GetTerms "tags") }}
<category>{{ .LinkTitle }}</category>{{end}} <category>{{ .LinkTitle }}</category>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Summary | transform.XMLEscape | safeHTML }}</description> <description>{{ .Summary | plainify }}</description>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>