atomitem.tmpl: use UUID as <id> if supplied
authorSimon McVittie <http://smcv.pseudorandom.co.uk/>
Fri, 11 Jul 2008 22:46:48 +0000 (23:46 +0100)
committerSimon McVittie <http://smcv.pseudorandom.co.uk/>
Fri, 11 Jul 2008 22:46:48 +0000 (23:46 +0100)
templates/atomitem.tmpl

index 1b1d686dddebb0d830e1c32e2c203cf5c03469ff..fdc629e39027ce0002e28a82f209974ee9f6b9be 100644 (file)
@@ -1,6 +1,10 @@
 <entry>
        <title><TMPL_VAR TITLE></title>
-       <id><TMPL_VAR URL></id>
+       <TMPL_IF NAME="UUID">
+         <id><TMPL_VAR UUID></id>
+       <TMPL_ELSE>
+         <id><TMPL_VAR URL></id>
+       </TMPL_IF>
        <link href="<TMPL_VAR PERMALINK>"/>
        <TMPL_IF NAME="AUTHOR">
         <author><name><TMPL_VAR AUTHOR ESCAPE=HTML></name></author>