diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/donations.html | 2 | ||||
-rw-r--r-- | tmpl/donations.rss | 28 |
2 files changed, 29 insertions, 1 deletions
diff --git a/tmpl/donations.html b/tmpl/donations.html index f50e96f..8eac51c 100644 --- a/tmpl/donations.html +++ b/tmpl/donations.html @@ -9,7 +9,7 @@ [% donations.total_30 %] Euros have been donated to Mageia.org in the last 30 days. [%- l = 10 -%] - <h3>Last [% l %] donations</h3> + <h3>Last [% l %] donations <a href="donations.rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="RSS feed" /></a></h3> <ul> [%- i=0 -%] [%- FOR don IN donations.donations.sort('date').reverse -%] diff --git a/tmpl/donations.rss b/tmpl/donations.rss new file mode 100644 index 0000000..83bf083 --- /dev/null +++ b/tmpl/donations.rss @@ -0,0 +1,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> |