fighting with rss feed template
[blog.pm.git] / templates / lib / feed
blobfc98ccaee2a401b2dac39241157a433badc6a7a3
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rss version="2.0" xml:base="[% c.req.base %]" xmlns:dc="http://purl.org/dc/elements/1.1/">
3 <channel>
4 <title>[% c.config.title %]</title>
5 <description>[% feed.description || c.config.description %]</description>
6 <link>[% c.req.base %]</link>
7 <language>[% c.language %]</language>
8 <lastBuildDate>[% feed.lastBuildDate %]</lastBuildDate>
9 [% FOREACH item IN feed.items %]
10 <item>
11 <title>[% item.title | html %]</title>
12 <description>[% item.description | html %]</description>
13 [%- FOREACH category IN item.category %]
14 <category>[% category.name %]</category>
15 [%- END %]
16 <pubDate>[% item.pubDate %]</pubDate>
17 <guid>[% item.link %]</guid>
18 <link>[% item.link %]</link>
19 [%- IF item.comments %]<comments>[% item.comments %]</comments>[% END -%]
20 <dc:creator>[% item.author %]</dc:creator>
21 </item>
22 [% END %]
23 </channel>
24 </rss>