summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2006-09-14 02:13:11 +0000
committerSteve Dibb <beandog@gentoo.org>2006-09-14 02:13:11 +0000
commit0a9131c4ad97ff97e4f98eb51494c6f3e9aeaf06 (patch)
tree39928d77ecb2f81fed85674e5370ebbe92a89f21 /templates
parentupdate avatars (diff)
downloadplanet-0a9131c4ad97ff97e4f98eb51494c6f3e9aeaf06.tar.gz
planet-0a9131c4ad97ff97e4f98eb51494c6f3e9aeaf06.tar.bz2
planet-0a9131c4ad97ff97e4f98eb51494c6f3e9aeaf06.zip
add atom feed, bugfixes
Diffstat (limited to 'templates')
-rw-r--r--templates/atom.xml.tmpl61
-rw-r--r--templates/rss20.xml.tmpl2
2 files changed, 62 insertions, 1 deletions
diff --git a/templates/atom.xml.tmpl b/templates/atom.xml.tmpl
new file mode 100644
index 00000000..8e0ef706
--- /dev/null
+++ b/templates/atom.xml.tmpl
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><TMPL_VAR name></title>
+ <link rel="self" href="<TMPL_VAR feed ESCAPE="HTML">"/>
+ <link href="<TMPL_VAR link ESCAPE="HTML">"/>
+ <id><TMPL_VAR feed ESCAPE="HTML"></id>
+ <updated><TMPL_VAR date_iso></updated>
+ <generator uri="http://www.planetplanet.org/"><TMPL_VAR generator ESCAPE="HTML"></generator>
+
+<TMPL_LOOP Items>
+ <entry<TMPL_IF channel_language> xml:lang="<TMPL_VAR channel_language>"</TMPL_IF>>
+ <title type="html"<TMPL_IF title_language> xml:lang="<TMPL_VAR title_language>"</TMPL_IF>><TMPL_VAR title ESCAPE="HTML"></title>
+ <link href="<TMPL_VAR link ESCAPE="HTML">"/>
+ <id><TMPL_VAR id ESCAPE="HTML"></id>
+ <updated><TMPL_VAR date_iso></updated>
+ <content type="html"<TMPL_IF content_language> xml:lang="<TMPL_VAR content_language>"</TMPL_IF>><TMPL_IF channel_face>&lt;img src=&quot;http://planet.gentoo.org/images/<TMPL_VAR channel_face ESCAPE="HTML">&quot; width=&quot;<TMPL_VAR channel_facewidth>&quot; height=&quot;<TMPL_VAR channel_faceheight>&quot; alt=&quot;&quot; align=&quot;right&quot; style=&quot;float: right;&quot;&gt;</TMPL_IF><TMPL_VAR content ESCAPE="HTML"></content>
+ <author>
+<TMPL_IF author_name>
+ <name><TMPL_VAR author_name ESCAPE="HTML"></name>
+<TMPL_IF author_email>
+ <email><TMPL_VAR author_email ESCAPE="HTML"></email>
+</TMPL_IF author_email>
+<TMPL_ELSE>
+<TMPL_IF channel_author_name>
+ <name><TMPL_VAR channel_author_name ESCAPE="HTML"></name>
+<TMPL_IF channel_author_email>
+ <email><TMPL_VAR channel_author_email ESCAPE="HTML"></email>
+</TMPL_IF channel_author_email>
+<TMPL_ELSE>
+ <name><TMPL_VAR channel_name ESCAPE="HTML"></name>
+</TMPL_IF>
+</TMPL_IF>
+ <uri><TMPL_VAR channel_link ESCAPE="HTML"></uri>
+ </author>
+ <source>
+<TMPL_IF channel_title>
+ <title type="html"><TMPL_VAR channel_title ESCAPE="HTML"></title>
+<TMPL_ELSE>
+ <title type="html"><TMPL_VAR channel_name ESCAPE="HTML"></title>
+</TMPL_IF>
+<TMPL_IF channel_subtitle>
+ <subtitle type="html"><TMPL_VAR channel_subtitle ESCAPE="HTML"></subtitle>
+</TMPL_IF>
+ <link rel="self" href="<TMPL_VAR channel_url ESCAPE="HTML">"/>
+<TMPL_IF channel_id>
+ <id><TMPL_VAR channel_id ESCAPE="HTML"></id>
+<TMPL_ELSE>
+ <id><TMPL_VAR channel_url ESCAPE="HTML"></id>
+</TMPL_IF>
+<TMPL_IF channel_updated_iso>
+ <updated><TMPL_VAR channel_updated_iso></updated>
+</TMPL_IF>
+<TMPL_IF channel_rights>
+ <rights type="html"><TMPL_VAR channel_rights ESCAPE="HTML"></rights>
+</TMPL_IF>
+ </source>
+ </entry>
+
+</TMPL_LOOP>
+</feed>
diff --git a/templates/rss20.xml.tmpl b/templates/rss20.xml.tmpl
index 8ee3336e..f0deacb7 100644
--- a/templates/rss20.xml.tmpl
+++ b/templates/rss20.xml.tmpl
@@ -13,7 +13,7 @@
<guid><TMPL_VAR id ESCAPE="HTML"></guid>
<link><TMPL_VAR link ESCAPE="HTML"></link>
<TMPL_IF content>
- <description><TMPL_IF channel_face>&lt;img src=&quot;http://planet.gentoo.org/images/<TMPL_VAR channel_face ESCAPE="HTML">&quot; width=&quot;<TMPL_VAR channel_facewidth>&quot; height=&quot;<TMPL_VAR channel_faceheight>&quot;alt=&quot;&quot; align=&quot;right&quot; style=&quot;float: right;&quot;&gt;</TMPL_IF><TMPL_VAR content ESCAPE="HTML"></description>
+ <description><TMPL_IF channel_face>&lt;img src=&quot;http://planet.gentoo.org/images/<TMPL_VAR channel_face ESCAPE="HTML">&quot; width=&quot;<TMPL_VAR channel_facewidth>&quot; height=&quot;<TMPL_VAR channel_faceheight>&quot; alt=&quot;&quot; align=&quot;right&quot; style=&quot;float: right;&quot;&gt;</TMPL_IF><TMPL_VAR content ESCAPE="HTML"></description>
</TMPL_IF>
<pubDate><TMPL_VAR date_822></pubDate>
<dc:creator><TMPL_VAR channel_name> (<TMPL_VAR channel_username>)</dc:creator>