summaryrefslogtreecommitdiff
path: root/share/templates/rss.tmpl
blob: 13a3ede3d2aeae9f7dc6518e1d99fc7e6124cf3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>[% title | xml %]</title>
    <link>[% base | xml %]</link>
    <description>[% description | xml %]</description>
    <language>[% language | xml %]</language>
    <pubDate>[% latest | xml %]</pubDate>
    <lastBuildDate>[% now | xml %]</lastBuildDate>
    <generator>DocKnot [% docknot_version | xml %]</generator>[% IF url %]
    <atom:link href="[% url | url %]" rel="self"
               type="application/rss+xml" />[% END %]

[% FOREACH entry IN entries %]    <item>
      <title>[% entry.title | xml %]</title>
      <link>[% entry.link | xml %]</link>
      <description><![CDATA[
[% entry.description %]      ]]></description>
      <pubDate>[% entry.date | xml %]</pubDate>
      <guid[% IF !entry.guid.match('^http') %] isPermaLink="false"[% END %]>[% entry.guid | xml %]</guid>
    </item>
[% END %]  </channel>
</rss>