]> git.decadent.org.uk Git - memories.git/blobdiff - templates/recent.rss
Memories as at 1.3
[memories.git] / templates / recent.rss
diff --git a/templates/recent.rss b/templates/recent.rss
new file mode 100644 (file)
index 0000000..51be582
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
+    <channel>
+        <title>Memories photostream</title>
+        <link>[%base%]</link>
+        <description>Recent photos from [%base %]</description>
+[% FOR photo = request.recent_uploads %]
+    <item>
+        <title>[%photo.title|html%]</title>
+        <pubDate>[%photo.shot.strftime("%a, %d %b %Y %H:%M:%S %z") %]</pubDate>
+
+        <description>
+[% FILTER html %]
+        <a href="[%base%]/photo/view/[%photo.id%]">
+        <img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/>
+        </a>
+[% END %]
+        </description>
+    </item>
+[% END %]
+</channel>
+</rss>