diff options
Diffstat (limited to 'layouts/_default/rss.xml')
-rw-r--r-- | layouts/_default/rss.xml | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index ca6663a..a329f0c 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -28,29 +28,23 @@ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{- end -}} {{ range $pages }} - {{- $content := safeHTML (.Summary | html) -}} + {{- $content := .Summary | html -}} {{- if .Params.Description -}} - {{- $content = safeHTML ( .Params.Description | html) -}} + {{- $content = .Params.Description | html -}} {{- end -}} + <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> - {{ if .Params.Image }} - <image> - <link>{{ .Permalink }}</link> - <url>{{ .Permalink }}{{.Params.Image}}</url> - <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> - </image> - {{ end }} <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> - <description> + <description><![CDATA[ {{ if .Params.Image }} <img src='{{ .Permalink }}{{.Params.Image}}' /> {{ end }} {{ $content }} - </description> + ]]></description> </item> {{ end }} </channel> |