]> git.deb.at Git - deb/hackedgotchi.git/blobdiff - templates/rss10.xml.dj
More django templates
[deb/hackedgotchi.git] / templates / rss10.xml.dj
diff --git a/templates/rss10.xml.dj b/templates/rss10.xml.dj
new file mode 100644 (file)
index 0000000..99726ea
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<rdf:RDF
+       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+       xmlns:dc="http://purl.org/dc/elements/1.1/"
+       xmlns:foaf="http://xmlns.com/foaf/0.1/"
+       xmlns:content="http://purl.org/rss/1.0/modules/content/"
+       xmlns="http://purl.org/rss/1.0/"
+>
+<channel rdf:about="{{ link }}">
+       <title>{{ name }}</title>
+       <link>{{ link }}</link>
+       <description>{{ name }} - {{ link }}</description>
+
+       <items>
+               <rdf:Seq> {% for item in Items %}
+                 <rdf:li rdf:resource="{{ item.id }}"/>{% endfor %}
+               </rdf:Seq>
+       </items>
+</channel>
+
+{% for item in Items %}
+<item rdf:about="{{ item.id }}">
+       <title>{{ item.channel_name }}>{% if item.title %}: {{ item.title_plain }}{% endif %}</title>
+       <link>{{ item.link }}</link>
+    {% if item.content %} <content:encoded>{{ item.content }}</content:encoded> {% endif %}
+       <dc:date>{{ item.date_iso }}</dc:date>
+       <dc:creator>{% firstof item.author_name item.channel_author_name item.channel_name %}</dc:creator>
+</item> {% endfor %}
+
+</rdf:RDF>