Merge commit 'smcv/beautify'
[ikiwiki] / templates / atomitem.tmpl
1 <entry>
2         <title><TMPL_VAR TITLE></title>
3         <TMPL_IF NAME="GUID">
4           <id><TMPL_VAR GUID></id>
5         <TMPL_ELSE>
6           <id><TMPL_VAR URL></id>
7         </TMPL_IF>
8         <link href="<TMPL_VAR PERMALINK>"/>
9         <TMPL_IF NAME="AUTHOR">
10          <author><name><TMPL_VAR AUTHOR ESCAPE=HTML></name></author>
11         </TMPL_IF>
12         <TMPL_IF NAME="COPYRIGHT">
13          <rights type="html" xml:lang="en">
14            <TMPL_IF NAME="LICENSE">
15             <TMPL_VAR LICENSE ESCAPE=HTML>
16             <TMPL_VAR COPYRIGHT ESCAPE=HTML>
17            <TMPL_ELSE>
18             <TMPL_VAR COPYRIGHT ESCAPE=HTML>
19            </TMPL_IF>
20          </rights>
21         <TMPL_ELSE>
22          <TMPL_IF NAME="LICENSE">
23           <rights type="html" xml:lang="en">
24             <TMPL_VAR LICENSE ESCAPE=HTML>
25           </rights>
26          </TMPL_IF>
27         </TMPL_IF>
28         <TMPL_IF NAME="CATEGORIES">
29          <TMPL_LOOP NAME="CATEGORIES">
30           <category term="<TMPL_VAR CATEGORY>" />
31          </TMPL_LOOP>
32         </TMPL_IF>
33         <updated><TMPL_VAR MDATE_3339></updated>
34         <published><TMPL_VAR CDATE_3339></published>
35         <TMPL_IF NAME="ENCLOSURE">
36          <link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
37         <TMPL_ELSE>
38          <content type="html" xml:lang="en">
39           <TMPL_VAR CONTENT ESCAPE=HTML>
40          </content>
41         </TMPL_IF>
42 </entry>