{# ------------------------------------------------------------------ #} {# Comments thread partial. #} {# Rendered INTO the post detail page (NOT a full page, no extends). #} {# Context: `post`, `comments` (approved, oldest first). #} {# ------------------------------------------------------------------ #}

{{ _('Comments') }} ({{ comments|length }})

{# Flash messages #} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %} {# Comment list #} {# Comment form — only when the post still accepts comments #} {% if post.comment_status != 'closed' %}
{# Captcha widget (cloudflare / recaptcha) — empty when none installed #} {% if captcha_widget is defined %} {{ captcha_script() }} {{ captcha_widget() }} {% endif %}

{{ _('Comments are moderated before appearing.') }}

{% endif %}