aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations.rss
blob: 83bf0837fb7950dbae784ae39fd9be8b14d66e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>[% config.sitename %]: Donations</title>
        <link>[% config.siteurl %]</link>
        <description>[% config.sitename %] Donations</description>
        <language>en</language>

        <atom:link href="[% config.siteurl %]/index.rss" rel="self" type="application/rss+xml" />

        [%- FOR don IN donations.donations.sort('date').reverse -%]

        <item>
            <title>[% don.who %] donated [% don.amount %] Euros</title>
            <link>[% config.siteurl %]/donations_[% date.format(don.date, format => '%Y-%m') %].html</link>
            <guid isPermaLink="false">[% config.sitename %]:donations:[% don.nb %]</guid>
            [%- USE date %]
            <pubDate>[% date.format(don.date, format => '%a, %d %b %Y %H:%M:%S', gmt => 1) %] GMT</pubDate>
            <category>[% don.type %]</category>
            <description>
                [% don.who %] donated [% don.amount %] Euros ([% don.type %]).
            </description>
        </item>

        [%- END -%]
    </channel>
</rss>