aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations.rss
blob: f1c49b07f7640d079ff6299c2bc09d50a9fce78b (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.sc_name %]</category>
            <description>
                [% don.who %] donated [% don.amount %] Euros ([% don.sc_name %]).
            </description>
        </item>

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