{% if comments is defined and (comments.is_open or comments.count > 0) %}

{{ comments.title }}

{% if comments.list|length > 0 %}
{% for comment in comments.list %} {% include 'partials/comment-item.html.twig' with {'comment': comment, 'depth': 0} only %} {% endfor %}
{% endif %} {% if comments.is_open %}
{{ comments.form|raw }}
{% endif %}
{% endif %}