From 961340e820279e02d43250637ffce35626177120 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 3 Jan 2020 00:39:01 +0800 Subject: [PATCH] :art: #10 --- theme/x/Next/article.html | 9 ++++++--- theme/x/Next/define-article-list.html | 2 +- theme/x/Next/define-footer.html | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/theme/x/Next/article.html b/theme/x/Next/article.html index 182edbdf..2e47a4dd 100644 --- a/theme/x/Next/article.html +++ b/theme/x/Next/article.html @@ -34,7 +34,7 @@

  |   {{.Article.ViewCount}} {{$.I18n.View}} - {{if gt .Article.CommentCount 0}} + {{if and $.Commentable (gt .Article.CommentCount 0)}}   |   {{.Article.CommentCount}} {{$.I18n.Comment}} {{end}} @@ -82,6 +82,7 @@

data-avatar="{{.Article.Author.AvatarURLWithSize 128}}"> + {{if $.Commentable}} @@ -90,7 +91,7 @@

{{$.I18n.Comment}} - + {{end}} @@ -136,6 +137,7 @@

{{$item.Author.Name}} + {{if $.Commentable}} {{if ne 0 $item.CommentCount}} {{$item.CommentCount}} @@ -144,7 +146,8 @@

{{$.I18n.Comment}} {{end}} - + + {{end}} {{end}} diff --git a/theme/x/Next/define-article-list.html b/theme/x/Next/define-article-list.html index f66bc418..034ed2d3 100644 --- a/theme/x/Next/define-article-list.html +++ b/theme/x/Next/define-article-list.html @@ -27,7 +27,7 @@

  |   {{.ViewCount}} {{$.I18n.View}} - {{if gt .CommentCount 0}} + {{if and $.Commentable (gt .CommentCount 0)}}   |   {{.CommentCount}} {{$.I18n.Comment}} {{end}} diff --git a/theme/x/Next/define-footer.html b/theme/x/Next/define-footer.html index 70a5407b..5cd619ef 100644 --- a/theme/x/Next/define-footer.html +++ b/theme/x/Next/define-footer.html @@ -14,9 +14,11 @@   {{.Statistic.StatisticArticleCount}} {{.I18n.Article}} + {{if $.Commentable}}   {{.Statistic.StatisticCommentCount}} {{.I18n.Comment}} + {{end}}
Powered by B3log 开源Pipe