diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-26 23:49:24 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-26 23:49:24 -0400 |
commit | 39cd33d34507c0cd12e3368b95add9c7c45b65e6 (patch) | |
tree | 670b7a184a7aa708480e39538c82851edc573f41 /themes/hugo-pt2021/layouts/_default/index.xml | |
parent | 04d1d053cc773af20269cc257301fcd5267b3e93 (diff) | |
download | pablotron.org-39cd33d34507c0cd12e3368b95add9c7c45b65e6.tar.bz2 pablotron.org-39cd33d34507c0cd12e3368b95add9c7c45b65e6.zip |
hugo-pt2021: use CDATA for RSS feed
Diffstat (limited to 'themes/hugo-pt2021/layouts/_default/index.xml')
-rw-r--r-- | themes/hugo-pt2021/layouts/_default/index.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/hugo-pt2021/layouts/_default/index.xml b/themes/hugo-pt2021/layouts/_default/index.xml index d0d9a13..3b61876 100644 --- a/themes/hugo-pt2021/layouts/_default/index.xml +++ b/themes/hugo-pt2021/layouts/_default/index.xml @@ -44,7 +44,7 @@ Changes: <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}} <guid>{{ .Permalink }}</guid> - <description>{{ .Content | htmlEscape | html }}</description> + <description>{{- (printf "<![CDATA[%s]]>" .Content) | safeHTML -}}</description> </item> {{ end }} </channel> |