-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.xml
22 lines (22 loc) · 1007 Bytes
/
news.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[%- USE date; PROCESS news_items | collapse -%]
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>Act News</title>
<id>http://act.mongueurs.net/news.xml</id>
<updated>[% date.format(date.now, format => "%FT%TZ", gmt => 1) %]</updated>
<link type="application/atom+xml" rel="self" href="http://act.mongueurs.net/news.xml"/>
<link type="text/html" rel="alternate" href="http://act.mongueurs.net/news.html"/>
[% FOREACH year = news.year.keys.nsort.reverse;
FOREACH item = news.year.$year %]
<entry>
<title>[% item.title %]</title>
<id>http://act.mongueurs.net/news.xml#[% item.anchor %]</id>
<author>
<name>Act team</name>
</author>
<updated>[% date.format(item.date, format => "%FT%TZ", gmt => 1) %]</updated>
<content type="html"><![CDATA[[% item.text %]]]></content>
<link type="text/html" rel="alternate" href="http://act.mongueurs.net/news.html#[% item.anchor %]"/>
</entry>
[% END; END %]
</feed>