{% 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 %}
{{ render_comment(comment) }}
{%- else %}
{# invisble LI to make validators happy. We do not omit the
list itself because javascript might still want to reference it. #}
{%- endfor %}
{%- else %}
{%- for comment in post.visible_root_comments recursive %}
{{ render_comment(comment, post.comments_enabled) }}
{%- if comment.visible_children %}
{{ loop(comment.visible_children) }}
{%- endif %}
{%- else %}
{# invisble LI to make validators happy. We do not omit the
list itself because javascript might still want to reference it. #}
{%- endfor %}
{% 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 -%}