diff --git a/src/DjangoBlog-master/templates/comments/tags/comment_list.html b/src/DjangoBlog-master/templates/comments/tags/comment_list.html index 4092161..85e4a80 100644 --- a/src/DjangoBlog-master/templates/comments/tags/comment_list.html +++ b/src/DjangoBlog-master/templates/comments/tags/comment_list.html @@ -1,38 +1,39 @@ - -
- {% load blog_tags %} - {% load comments_tags %} - {% load cache %} +``` + {# 应该是div标签,可能是拼写错误 #} +
{# 评论区域 #} + {% load blog_tags %} {# 加载博客自定义标签 #} + {% load comments_tags %} {# 加载评论标签 #} + {% load cache %} {# 加载缓存标签 #} -
    -
  • 评论{{ comment_count }}
  • + - {% if article_comments %} -
    -
      - {# {% query article_comments parent_comment=None as parent_comments %}#} - {% for comment_item in p_comments %} + {% if article_comments %} {# 如果存在文章评论 #} +
      {# 评论列表容器 #} +
        {# 评论有序列表 #} + {# {% query article_comments parent_comment=None as parent_comments %}#} {# 注释掉的查询父评论代码 #} + {% for comment_item in p_comments %} {# 遍历父评论 #} - {% with 0 as depth %} - {% include "comments/tags/comment_item_tree.html" %} + {% with 0 as depth %} {# 设置初始深度为0 #} + {% include "comments/tags/comment_item_tree.html" %} {# 包含评论树模板 #} {% endwith %} {% endfor %}
      -
-
\ No newline at end of file + {# 应该是div结束标签 #} \ No newline at end of file