]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - templates/rssitem.tmpl
Q. How to truncate blog posts?
[git.ikiwiki.info.git] / templates / rssitem.tmpl
index a61b92b6127505e3f61b068d046e3f706a956d9a..bb03ca5bcf9be23c9f52d9e81fd3072ec2ab50f7 100644 (file)
@@ -1,29 +1,28 @@
 <item>
 <item>
-       <TMPL_IF NAME="AUTHOR">
-       <title><TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE></title>
-       <dcterms:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dcterms:creator>
-       <TMPL_ELSE>
        <title><TMPL_VAR TITLE></title>
        <title><TMPL_VAR TITLE></title>
-       </TMPL_IF>
-       <TMPL_IF NAME="GUID">
-         <guid isPermaLink="no"><TMPL_VAR GUID></guid>
-       <TMPL_ELSE>
-         <guid><TMPL_VAR URL></guid>
-       </TMPL_IF>
+<TMPL_IF GUID>
+       <guid isPermaLink="false"><TMPL_VAR GUID></guid>
+<TMPL_ELSE>
+       <guid isPermaLink="false"><TMPL_VAR URL></guid>
+</TMPL_IF>
        <link><TMPL_VAR PERMALINK></link>
        <link><TMPL_VAR PERMALINK></link>
-       <TMPL_IF NAME="CATEGORIES">
-       <TMPL_LOOP NAME="CATEGORIES">
+<TMPL_IF AUTHOR>
+       <dc:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dc:creator>
+</TMPL_IF>
+<TMPL_IF CATEGORIES>
+<TMPL_LOOP CATEGORIES>
        <category><TMPL_VAR CATEGORY></category>
        <category><TMPL_VAR CATEGORY></category>
-       </TMPL_LOOP>
-       </TMPL_IF>
+</TMPL_LOOP>
+</TMPL_IF>
        <pubDate><TMPL_VAR CDATE_822></pubDate>
        <dcterms:modified><TMPL_VAR MDATE_3339></dcterms:modified>
        <pubDate><TMPL_VAR CDATE_822></pubDate>
        <dcterms:modified><TMPL_VAR MDATE_3339></dcterms:modified>
-       <TMPL_IF NAME="ENCLOSURE">
+<TMPL_IF ENCLOSURE>
        <enclosure url="<TMPL_VAR ENCLOSURE>" type="<TMPL_VAR TYPE>" length="<TMPL_VAR LENGTH>" />
        <enclosure url="<TMPL_VAR ENCLOSURE>" type="<TMPL_VAR TYPE>" length="<TMPL_VAR LENGTH>" />
-       <TMPL_ELSE>
+</TMPL_IF>
+<TMPL_UNLESS SIMPLEPODCAST>
        <description><TMPL_VAR CONTENT ESCAPE=HTML></description>
        <description><TMPL_VAR CONTENT ESCAPE=HTML></description>
-       </TMPL_IF>
-       <TMPL_IF NAME="COMMENTSURL">
-       <comments><TMPL_VAR NAME="COMMENTSURL"></comments>
-       </TMPL_IF>
+</TMPL_UNLESS>
+<TMPL_IF COMMENTSURL>
+       <comments><TMPL_VAR COMMENTSURL></comments>
+</TMPL_IF>
 </item>
 </item>