mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Only output div.articleComments if the block has content (#555)
This commit is contained in:
parent
abd951a9cd
commit
f2e8a23112
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user