summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/posts/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/layouts/posts/single.html')
-rw-r--r--themes/CodeIT/layouts/posts/single.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/CodeIT/layouts/posts/single.html b/themes/CodeIT/layouts/posts/single.html
index 8f788a2..3eab250 100644
--- a/themes/CodeIT/layouts/posts/single.html
+++ b/themes/CodeIT/layouts/posts/single.html
@@ -60,6 +60,17 @@
<i class="far fa-eye fa-fw"></i>&nbsp;<span class=leancloud-visitors-count></span>&nbsp;{{ T "views" }}
</span>&nbsp;
{{- end -}}
+ {{- if $comment.enable | and $comment.waline.enable | and $comment.waline.visitor -}}
+ <span id="{{ .RelPermalink }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
+ <i class="far fa-eye fa-fw"></i>&nbsp;<span class=leancloud-visitors-count></span>&nbsp;{{ T "views" }}
+ </span>&nbsp;
+ <a href="#comments" id="post-meta-vcount" title="{{ T `viewComments` }}">
+ <i class="fas fa-comment fa-fw"></i>&nbsp;<span id="{{ .RelPermalink }}" class="waline-comment-count"></span>&nbsp;条评论
+ </a>
+ {{- end -}}
+ {{- if $comment.enable | and $comment.twikoo.enable -}}
+ <i class="far fa-eye fa-fw"></i>&nbsp;<span id="twikoo_visitors">0</span>&nbsp;{{ T "views" }}
+ {{- end -}}
</div>
</div>