diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/atomitem.tmpl | 5 | ||||
-rw-r--r-- | templates/inlinepage.tmpl | 6 | ||||
-rw-r--r-- | templates/page.tmpl | 6 | ||||
-rw-r--r-- | templates/rssitem.tmpl | 13 | ||||
-rw-r--r-- | templates/rsspage.tmpl | 5 |
5 files changed, 26 insertions, 9 deletions
diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl index 4ed17bc62..9b056e0f4 100644 --- a/templates/atomitem.tmpl +++ b/templates/atomitem.tmpl @@ -34,11 +34,12 @@ <published><TMPL_VAR CDATE_3339></published> <TMPL_IF ENCLOSURE> <link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" /> -<TMPL_ELSE> +</TMPL_IF> +<TMPL_UNLESS SIMPLEPODCAST> <content type="html" xml:lang="en"> <TMPL_VAR CONTENT ESCAPE=HTML> </content> -</TMPL_IF> +</TMPL_UNLESS> <TMPL_IF COMMENTSURL> <link rel="comments" href="<TMPL_VAR COMMENTSURL>" type="text/html" /> </TMPL_IF> diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl index b0b53d041..37d7e48c1 100644 --- a/templates/inlinepage.tmpl +++ b/templates/inlinepage.tmpl @@ -23,6 +23,12 @@ <TMPL_VAR CONTENT> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> +<TMPL_IF ENCLOSURE> +<TMPL_IF HTML5><section id="inlineenclosure"><TMPL_ELSE><div id="inlineenclosure"></TMPL_IF> +<a href="<TMPL_VAR ENCLOSURE>">Download</a> +<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> +</TMPL_IF> + <TMPL_IF HTML5><footer class="inlinefooter"><TMPL_ELSE><div class="inlinefooter"></TMPL_IF> <span class="pagedate"> diff --git a/templates/page.tmpl b/templates/page.tmpl index 6353c7596..c886b22d8 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -138,6 +138,12 @@ <TMPL_VAR CONTENT> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> +<TMPL_IF ENCLOSURE> +<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF> +<a href="<TMPL_VAR ENCLOSURE>">Download</a> +<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> +</TMPL_IF> + <TMPL_UNLESS DYNAMIC> <TMPL_IF COMMENTS> <TMPL_IF HTML5><section id="comments"><TMPL_ELSE><div id="comments"></TMPL_IF> diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl index 831daa871..9acefb5d3 100644 --- a/templates/rssitem.tmpl +++ b/templates/rssitem.tmpl @@ -1,16 +1,14 @@ <item> -<TMPL_IF 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> -</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> +<TMPL_IF AUTHOR> + <dcterms:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dcterms:creator> +</TMPL_IF> <TMPL_IF CATEGORIES> <TMPL_LOOP CATEGORIES> <category><TMPL_VAR CATEGORY></category> @@ -20,9 +18,10 @@ <dcterms:modified><TMPL_VAR MDATE_3339></dcterms:modified> <TMPL_IF ENCLOSURE> <enclosure url="<TMPL_VAR ENCLOSURE>" type="<TMPL_VAR TYPE>" length="<TMPL_VAR LENGTH>" /> -<TMPL_ELSE> - <description><TMPL_VAR CONTENT ESCAPE=HTML></description> </TMPL_IF> +<TMPL_UNLESS SIMPLEPODCAST> + <description><TMPL_VAR CONTENT ESCAPE=HTML></description> +</TMPL_UNLESS> <TMPL_IF COMMENTSURL> <comments><TMPL_VAR COMMENTSURL></comments> </TMPL_IF> diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl index e54094aaa..45265f265 100644 --- a/templates/rsspage.tmpl +++ b/templates/rsspage.tmpl @@ -5,7 +5,12 @@ <channel> <title><TMPL_VAR TITLE></title> <link><TMPL_VAR PAGEURL></link> +<TMPL_IF COPYRIGHT> +<copyright><TMPL_VAR COPYRIGHT ESCAPE=HTML></copyright> +</TMPL_IF> <description><TMPL_VAR FEEDDESC ESCAPE=HTML></description> +<generator>ikiwiki</generator> +<pubDate><TMPL_VAR FEEDDATE_822></pubDate> <TMPL_VAR CONTENT> </channel> </rss> |