diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index f5d42854..0967c780 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -23,7 +23,7 @@ {{ if .Site.Params.footer.showCopyright | default true -}} {{ with replace .Site.Params.copyright "{ year }" now.Year }}{{.}}{{ else }}© {{ now.Format "2006" }} {{ .Site.Params.Author.name }}{{- end }} {{- end }} - {{ if not .Date.IsZero }}{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ if not .Date.IsZero }}{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} @@ -40,7 +40,7 @@ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} - {{ .Summary | plainify | htmlUnescape | safeHTML }} + {{ .Summary | transform.XMLEscape | safeHTML }} {{ range ( where .Site.RegularPages ".RelPermalink" .RelPermalink | first 1 ) }} {{- $images := .Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}}