]> git.deb.at Git - deb/hackedgotchi.git/blobdiff - templates/rss20.xml.dj
More django templates
[deb/hackedgotchi.git] / templates / rss20.xml.dj
diff --git a/templates/rss20.xml.dj b/templates/rss20.xml.dj
new file mode 100644 (file)
index 0000000..743f2eb
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<rss version="2.0">
+
+<channel>
+       <title>{{ name }}</title>
+       <link>{{ link }}</link>
+       <language>en</language>
+       <description>{{ name }} - {{ link }}</description>
+
+{% for item in Items %}
+<item>
+       <title>{{ item.channel_name }}>{% if item.title %}: {{ item.title_plain }}{% endif %}</title>
+       <guid>{{ item.id }}</guid>
+       <link>{{ item.link }}</link>
+    {% if item.content %} <description> {% if item.channel_face %} &lt;img src=&quot;http://planet.debian.org/heads/{{ item.channel_face }}&quot; width=&quot;{{ item.channel_facewidth }}&quot; height=&quot;{{ item.channel_faceheight }}&quot; alt=&quot;&quot; align=&quot;right&quot; style=&quot;float: right;&quot;&gt; {% endif %} {{ item.content }} </description> {% endif %}
+       <pubDate>{{ item.date_822 }}</pubDate>
+{% if item.author_email %} {% if item.author_name %} <author>{{ item.author_email }} ({{ item.author_name }})</author> {% else %} <author>{{ item.author_email }}</author> {% endif %} {% endif %}
+</item> {% endfor %}
+</channel>
+</rss>