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:39 +0100
commit291ee74ef82fb75563384e536d3ff2d4758fdbcb (patch)
tree9af104a3663a2480158b7ef7eaa2ad40f541c1be
parentc708af237dd3f319066a76511738f8f901a5d530 (diff)
Don't add enclosure divs unless we have enclosures.
(cherry picked from commit 6a1cbe6f09e20ead8393de184480a403bc20cda1)
-rw-r--r--.templates/page.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/.templates/page.tmpl b/.templates/page.tmpl
index b707d9f0..e6e1ac02 100644
--- a/.templates/page.tmpl
+++ b/.templates/page.tmpl
@@ -134,11 +134,11 @@
<TMPL_VAR CONTENT>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
-<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></TMPL_IF>
<TMPL_IF ENCLOSURE>
+<TMPL_IF HTML5><section id="enclosure"><TMPL_ELSE><div id="enclosure"></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_UNLESS DYNAMIC>
<TMPL_IF COMMENTS>