]> git.deb.at Git - deb/hackedgotchi.git/commitdiff
Add atom feed
authorjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Sat, 13 Dec 2008 21:37:54 +0000 (21:37 +0000)
committerjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Sat, 13 Dec 2008 21:37:54 +0000 (21:37 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@1049 c2f067bf-98e0-425f-9c98-e76020cfa380

templates/atom.xml.tmpl [new file with mode: 0644]
templates/index.html.tmpl

diff --git a/templates/atom.xml.tmpl b/templates/atom.xml.tmpl
new file mode 100644 (file)
index 0000000..4448459
--- /dev/null
@@ -0,0 +1,62 @@
+<?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.intertwingly.net/code/venus/"><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>
+               <summary type="html"<TMPL_IF summary_language> xml:lang="<TMPL_VAR summary_language>"</TMPL_IF>><TMPL_VAR summary ESCAPE="HTML"></summary>
+               <content type="html"<TMPL_IF content_language> xml:lang="<TMPL_VAR content_language>"</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>
index fa7188d73f9f79b0568355be49bf3d67a151a2c9..42d95899849288632555b5dd65abdb1f0a31f22a 100644 (file)
@@ -34,7 +34,10 @@ window.onload=hideHosts;
 <a href="<TMPL_VAR channel_link ESCAPE="HTML">"><img class="face" src="heads/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt=""></a>
 </TMPL_IF>
 <h2><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title ESCAPE="HTML">"><TMPL_VAR channel_name></a>
-<a href="#" id="<TMPL_VAR link ESCAPE="html">_hide" onClick="exclude( '<TMPL_VAR link ESCAPE="html">' ); hideHosts(); return false;"><img src="/minus-8.png" style="border: none;" title="Hide Author" alt="Hide Author" height="8" width="8"></a> <a href="#" id="<TMPL_VAR link ESCAPE="html">_show"  style="display:none;" onClick="show( '<TMPL_VAR link ESCAPE="html">' );  return false;"><img src="/plus-8.png" style="border: none;" title="Show Author" alt="Show Author" height="8" width="8"></a></h2>
+<script type="text/javascript">
+document.write( "<a href=\"#\" id=\"<TMPL_VAR link ESCAPE=\"html\">_hide\" onClick=\"exclude( '<TMPL_VAR link ESCAPE=\"html\">' ); hideHosts(); return false;\"><img src=\"/minus-8.png\" style=\"border: none;\" title=\"Hide Author\" alt=\"Hide Author\" height=\"8\" width=\"8\"></a> <a href=\"#\" id=\"<TMPL_VAR link ESCAPE=\"html\">_show\"  style=\"display:none;\" onClick=\"show( '<TMPL_VAR link ESCAPE=\"html\">' );  return false;\"><img src=\"/plus-8.png\" style=\"border: none;\" title=\"Show Author\" alt=\"Show Author\" height=\"8\" width=\"8\"></a>" );
+</script>
+</h2>
 </TMPL_IF>
 <div id="<TMPL_VAR link ESCAPE="html">" class="<TMPL_VAR link ESCAPE="html">">
 <div class="entry">
@@ -82,6 +85,7 @@ linked by the buttons below.
 <p>
 <a href="rss10.xml"><img class="button" src="rss10.png" width="80" height="15" alt="[RSS 1.0 Feed]"></a>
 <a href="rss20.xml"><img class="button" src="rss20.png" width="80" height="15" alt="[RSS 2.0 Feed]"></a>
+<a href="atom.xml"><img class="button" src="atom.png" width="80" height="15" alt="[Atom Feed]"></a>
 <a href="foafroll.xml"><img class="button" src="foaf.png" width="80" height="15" alt="[FOAF Subscriptions]"></a>
 <a href="opml.xml"><img class="button" src="opml.png" width="80" height="15" alt="[OPML Subscriptions]"></a>
 <a href="http://www.catb.org/hacker-emblem/"><img class="button" src="hacker.png" width="80" height="15" alt="[Hacker]"></a>
@@ -91,8 +95,7 @@ linked by the buttons below.
 <p>
 Last updated: <TMPL_VAR date>.<br>
 All times are UTC.<br>
-Contact: &lt;<a href="mailto:planet@debian.org">planet@debian.org</a>&gt;<br>
-<a href="http://wiki.debian.org/PlanetDebian">more information</a>
+Contact: &lt;<a href="mailto:planet@debian.org">planet@debian.org</a>&gt;
 </p>
 
 <div id="unhide-all" style="display:none;">