diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 17:11:24 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 17:11:24 +0300 |
commit | 6b82bc48d643005443783671986e8c6d8931ea66 (patch) | |
tree | db69d0989efdf00ee2d68d08e392da3845e48920 | |
parent | 038dbe8d428fc122caa19bfb369305fae03795ea (diff) |
Auto-commit 2024-12-15
-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> |