summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-06-26 20:17:17 -0400
committerThomas Schwinge <thomas@schwinge.name>2014-03-09 19:29:38 +0100
commitf5f11dde240e7bfea0ba52f7c4d72c413cf12ba4 (patch)
tree7de398c43e0ed974352718a79a0f9a13cf790c4e
parent7887b77dccdc305f5fef56930ac27e46d1560455 (diff)
Don't add enclosure divs unless we have enclosures.
(cherry picked from commit 6a1cbe6f09e20ead8393de184480a403bc20cda1)
-rw-r--r--.templates/newsitem.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/.templates/newsitem.tmpl b/.templates/newsitem.tmpl
index 910c2060..c7153bd0 100644
--- a/.templates/newsitem.tmpl
+++ b/.templates/newsitem.tmpl
@@ -41,11 +41,11 @@
<TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
-<TMPL_IF HTML5><section id="newsenclosure"><TMPL_ELSE><div id="newsenclosure"></TMPL_IF>
<TMPL_IF ENCLOSURE>
+<TMPL_IF HTML5><section id="newsenclosure"><TMPL_ELSE><div id="newsenclosure"></TMPL_IF>
<a href="<TMPL_VAR ENCLOSURE>">Download this episode</a>
-</TMPL_IF>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
+</TMPL_IF>
<TMPL_IF HTML5><footer class="newsitemfooter"><TMPL_ELSE><div class="newsitemfooter"></TMPL_IF>