John Mulligan avatar John Mulligan committed 0478b59

add xml skeletons for atom and rss feeds

Comments (0)

Files changed (2)

skins/default/atom.xml

+<?xml version="1.0" encoding="utf-8" ?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+    <title>{{current.page.title}}</title>
+    <link href="{{ext.site_url}}"></link>
+    <link rel="self" href="{{ext.atom_url}}"></link>
+    <updated>{{ext.feed_updated}}</updated>
+
+    <author>
+        <name>{{ext.feed_author}}</name>
+    </author>
+
+    <id>{{ext.feed_id_tag}}</id>
+
+    {% for entry in ext.entries %}
+    <entry>
+        <title>{{entry.page.title}}</title>
+        <link href="{{entry.linkto}}"></link>
+        <updated>{{entry.modifiedon.atomfmt}}</updated>
+        <published>{{entry.createdon.atomfmt}}</published>
+
+        <content type="html">
+            Escaped HTML GOES HERE.
+        </content>
+
+        <id>{{entry.id_tag}}</id>
+    </entry>
+    {% endfor %}
+
+</feed>

skins/default/rss2.xml

+<?xml version="1.0"?>
+<rss version="2.0">
+<channel>
+
+  <title>{{current.page.title}}</title>
+  <link>{{ext.site_url}}</link>
+  <description>{{current.description}}</description>
+
+  {% for entry in ext.entries %}
+  <item> 
+    <title>{{entry.page.title}}</title>
+    <link>{{entry.linkto}}</link>
+    <pubDate>{{entry.createdon.rfc822fmt}}</pubDate>
+    
+    <description>
+     {{entry.content|escapex}}
+    </description>
+    
+    <guid>{{entry.linkto}}</guid>
+  </item>
+  {% endfor %}
+
+</channel>
+</rss>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.