aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/donations.rss
blob: 50885c24582398ff66049930c5771193f89b1c59 (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
[%- USE date -%]
<?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 %]/donations.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_m_[% date.format(don.date, format => '%Y-%m') %].html</link>
            <guid isPermaLink="false">[% config.sitename %]:donations:[% don.nb %]</guid>
            <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>