diff options
author | tdro <tdro@noreply.example.com> | 2022-08-10 20:44:23 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-10 20:44:23 -0400 |
commit | 8f7ca3e649bf30321584df61fca9a374586a524c (patch) | |
tree | 5a3a7916eaf079c2e1051003701e999b228b0fd6 /themes/default/layouts/_default/rss.xml | |
parent | 3005cd0c948e6129267efe2e7394d19fc718f5a8 (diff) | |
download | canory-8f7ca3e649bf30321584df61fca9a374586a524c.tar.gz canory-8f7ca3e649bf30321584df61fca9a374586a524c.tar.bz2 canory-8f7ca3e649bf30321584df61fca9a374586a524c.zip |
themes/default/layouts/_default/rss: Append tags to item
Diffstat (limited to 'themes/default/layouts/_default/rss.xml')
-rw-r--r-- | themes/default/layouts/_default/rss.xml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml index 1628b56..e6eca24 100644 --- a/themes/default/layouts/_default/rss.xml +++ b/themes/default/layouts/_default/rss.xml @@ -6,7 +6,7 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- print "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} -{{- print "<?xml-stylesheet href=\"/rss.xsl\" type=\"text/xsl\"?>" | safeHTML }} +{{ print "<?xml-stylesheet href=\"/rss.xsl\" type=\"text/xsl\"?>" | safeHTML }} <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> @@ -25,16 +25,19 @@ {{ with .OutputFormats.Get "RSS" }} {{- printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML -}} {{ end }} - {{- range $pages -}} + {{- range $pages }} {{ if and (not .Params.Unlisted) (not .ExpiryDate) }} <item> <title>{{ .Summary | htmlUnescape }}</title> <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <guid>{{ .Permalink }}</guid> - <description>{{ partial "function-content.html" .Content | html }}</description> + <description> + {{- partial "function-content.html" .Content | html -}} + {{- partial "rss-tags.html" . | html -}} + </description> </item> - {{ end }} + {{- end -}} {{ end }} </channel> </rss> |