diff options
author | Mark Powers <mark@marks.kitchen> | 2025-08-21 18:20:39 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2025-08-21 18:20:39 -0500 |
commit | d99ff3c4026322b2456f6dc45f8184ce18c94a48 (patch) | |
tree | c8e554f7342d1b7f11a514b1a7e6fbec9e51eb11 /layouts | |
parent | 2390a83cd7a3ee1915026c9993570b20c65fb74d (diff) |
Add RSS styling
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/rss.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index c6b7f31..f9b9c66 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,6 +11,7 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} +{{- printf "<?xml-stylesheet href=\"/rss.xsl\" type=\"text/xsl\" media=\"screen\" ?>" | safeHTML }} <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> @@ -27,14 +28,14 @@ {{- end -}} {{ range $pages }} {{if compare.Eq .Section "blog"}} - <item> + <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> <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>{{ .Summary | html }}</description> - </item> + <description>{{ .Summary }}</description> + </item> {{ end }} {{ end }} </channel> |