Only output div.articleComments if the block has content (#555)

This commit is contained in:
Jesse Tan 2018-01-24 16:13:08 +01:00 committed by Aaron Carlisle
parent abd951a9cd
commit f2e8a23112

View File

@ -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>