{% load blog_tags %}
  • {% if comment_item.parent_comment %}

    回复 @{{ comment_item.parent_comment.author.username }}
    {% endif %}

    {{ comment_item.body|custom_markdown }}

  • {% query article_comments parent_comment=comment_item as cc_comments %} {% for cc in cc_comments %} {% with comment_item=cc template_name="comments/tags/comment_item_tree.html" %} {% if depth >= 1 %} {% include template_name %} {% else %} {% with depth=depth|add:1 %} {% include template_name %} {% endwith %} {% endif %} {% endwith %} {% endfor %}