]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - rss_20.tmpl
News feeds in Atom 1.0 and RSS 2.0 formats.
[phdru.name/phdru.name.git] / rss_20.tmpl
diff --git a/rss_20.tmpl b/rss_20.tmpl
new file mode 100644 (file)
index 0000000..22692ea
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="koi8-r"?>
+<rss version="2.0">
+  <channel>
+    <title>$title</title>
+    <link>$baseURL</link>
+    <description>$description</description>
+    <language>$lang</language>
+    <webMaster>$author &lt;$email&gt;</webMaster>
+    <lastBuildDate>${posts[0].rfc822_date}</lastBuildDate>
+    <generator>http://phd.pp.ru/about/make/make-news.py.txt</generator>
+#for $post in $posts
+    <item>
+      <title>$post.title</title>
+      <link>$post.URL</link>
+#if $post.excerpt or $post.content
+      <description>
+#filter WebSafe
+#if $post.excerpt
+$post.excerpt
+&lt;p&gt;&lt;a href="$post.URL"&gt;Read more&lt;/a&gt;&amp;hellip;&lt;/p&gt;
+#elif $post.content
+$post.content
+#end if
+#filter Filter
+      </description>
+#end if
+      <pubDate>${post.rfc822_date}</pubDate>
+  #for $c in $post.categoryList
+      <category>$c</category>
+  #end for
+    </item>
+#end for
+  </channel>
+</rss>