-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrss.xml
28 lines (27 loc) · 973 Bytes
/
rss.xml
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
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Last URL Shortened</title>
<link>http://shorten-url.appspot.com/</link>
<description>RSS 2.0 feed containing last URL shortened</description>
<language>en-us</language>
<webMaster>[email protected]</webMaster>
{% for shortUrl in lasts %}
<item>
<title>http://valte.ch/{{ shortUrl.shortname }} referring to {{ shortUrl.url }}</title>
<link>{{ shortUrl.url }}</link>
<description>{{ shortUrl.hits }} hits, created the {{ shortUrl.creation_date|date:"r" }}, </description>
<pubDate>{{ shortUrl.creation_date|date:"r" }}</pubDate>
<guid isPermaLink="false">{{ shortUrl.key }}</guid>
</item>
{% endfor %}
{% if not lasts %}
<item>
<title>Default item in feed</title>
<link>http://valte.ch/</link>
<guid isPermaLink="false">0000000001</guid>
<description>Default sample item</description>
</item>
{% endif %}
</channel>
</rss>