Skip to content

Commit

Permalink
Only output div.articleComments if the block has content (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessetan authored and Blendify committed Jan 24, 2018
1 parent abd951a commit f2e8a23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@
<div itemprop="articleBody">
{% block body %}{% endblock %}
</div>
{% if self.comments()|trim %}
<div class="articleComments">
{% block comments %}{% endblock %}
</div>
{% endif%}
</div>
{% include "footer.html" %}
</div>
Expand Down

0 comments on commit f2e8a23

Please sign in to comment.