Skip to content

Commit f2e8a23

Browse files
jessetanBlendify
authored andcommitted
Only output div.articleComments if the block has content (#555)
1 parent abd951a commit f2e8a23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@
171171
<div itemprop="articleBody">
172172
{% block body %}{% endblock %}
173173
</div>
174+
{% if self.comments()|trim %}
174175
<div class="articleComments">
175176
{% block comments %}{% endblock %}
176177
</div>
178+
{% endif%}
177179
</div>
178180
{% include "footer.html" %}
179181
</div>

0 commit comments

Comments
 (0)