You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/11/21 00:04:47 UTC

svn commit: r477388 - /incubator/roller/trunk/sandbox/planetroller/templates/atom.vm

Author: snoopdave
Date: Mon Nov 20 15:04:46 2006
New Revision: 477388

URL: http://svn.apache.org/viewvc?view=rev&rev=477388
Log:
Fixing Atom validation errors wand warnings

Modified:
    incubator/roller/trunk/sandbox/planetroller/templates/atom.vm

Modified: incubator/roller/trunk/sandbox/planetroller/templates/atom.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/sandbox/planetroller/templates/atom.vm?view=diff&rev=477388&r1=477387&r2=477388
==============================================================================
--- incubator/roller/trunk/sandbox/planetroller/templates/atom.vm (original)
+++ incubator/roller/trunk/sandbox/planetroller/templates/atom.vm Mon Nov 20 15:04:46 2006
@@ -21,7 +21,7 @@
     <title type="html">$utils.escapeXML($group.title)</title>
     <subtitle type="html">$utils.escapeXML($group.description)</subtitle>
     <id>$utils.escapeXML(${planet.configuration.siteURL})/${group.handle}.html</id>
-    <link rel="self" type="application/atom+xml" href="$utils.escapeXML(${planet.configuration.siteURL})/${group.handle}.atom" />
+    <link rel="self" type="application/atom+xml" href="$utils.escapeXML(${planet.configuration.siteURL})/${group.handle}/index.atom" />
     <link rel="alternate" type="text/html" href="$utils.escapeXML(${planet.configuration.siteURL})/${group.handle}.html" />
     <updated>$utils.formatIso8601Date($date)</updated>
     <generator uri="http://rollerweblogger.org" version="3.1">Roller-Planet (sandbox)</generator>
@@ -34,13 +34,21 @@
            <content type="html">$utils.escapeXML($entry.content)</content> #end
         #if($entry.categories)
             #foreach($cat in $entry.categories)
-               <category>$utils.escapeXML($cat.name)</category>
+               <category term="$utils.escapeXML($cat.name)" />
             #end
         #end
         <link rel="alternate" type="text/html" href="$entry.permalink"/>
         <published>$utils.formatIso8601Date($entry.published)</published>
-        <updated>$utils.formatIso8601Date($entry.updated)</updated> 
-        <author><name>$utils.escapeXML($entry.author)</name></author>
+        #if($entry.updated)
+            <updated>$utils.formatIso8601Date($entry.updated)</updated> 
+        #else
+            <updated>$utils.formatIso8601Date($entry.published)</updated> 
+        #end
+        #if($entry.author)
+           <author><name>$utils.escapeXML($entry.author)</name></author>
+        #else
+           <author><name>UNKNOWN</name></author>
+        #end
     </entry>
     #end
 </feed>