diff --git a/templates/blog/tags/article_info.html b/templates/blog/tags/article_info.html index 25058af..54883ce 100644 --- a/templates/blog/tags/article_info.html +++ b/templates/blog/tags/article_info.html @@ -23,7 +23,7 @@ - {% if article.comment and article.comment_set.count %} + {% if article.comment_set and article.comment_set.count %} {{ article.comment_set.count }}个评论 {% else %} 发表评论 diff --git a/templates/blog/tags/sidebar.html b/templates/blog/tags/sidebar.html index 806a53f..c2de415 100755 --- a/templates/blog/tags/sidebar.html +++ b/templates/blog/tags/sidebar.html @@ -122,7 +122,7 @@ {% else %} -
  • 登录 +
  • 登录
  • {% endif %} {% if user.is_superuser %}
  • 刷新缓存