{% macro render_comment(comment, add_reply_link=false) %}
{{ comment.body }}

{% if comment.is_pingback %}{{ _("Pingback by") }} {%- else %}{{ _("Comment by") }}{% endif %} {% if comment.www %}{{ comment.author|e }}{% elif not comment.author %}{% trans %}Anonymous{% endtrans %}{% else %}{{ comment.author|e }}{% endif %} — {{ comment.pub_date|datetimeformat }} | # {%- if add_reply_link %} - re {% endif -%}

{%- endmacro %} {% macro render_comments(post) %} {%- if cfg.use_flat_comments %}
    {%- for comment in post.visible_comments %}
  1. {{ render_comment(comment) }}
  2. {%- else %} {# invisble LI to make validators happy. We do not omit the list itself because javascript might still want to reference it. #}
  3. {%- endfor %}
{%- else %} {%- endif %} {% endmacro %} {% macro render_comment_editor(post, form) %} {%- call form(class='comments') %} {{ emit_event('before-comment-editor-rendered', post) }} {%- if not form.small_form %}
{{ form.author.as_dd() }} {{ form.email.as_dd() }} {{ form.www.as_dd() }}
{%- endif %}
{{ form.body() }}{{ form.parent() }}
{# used for the reply callback #}
{{ emit_event('before-comment-editor-buttons-rendered', post) }}
{{ emit_event('after-comment-editor-rendered', post) }} {%- endcall %} {% endmacro %}