summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/posts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/layouts/posts')
-rw-r--r--themes/CodeIT/layouts/posts/rss.xml2
-rw-r--r--themes/CodeIT/layouts/posts/single.html11
2 files changed, 12 insertions, 1 deletions
diff --git a/themes/CodeIT/layouts/posts/rss.xml b/themes/CodeIT/layouts/posts/rss.xml
index 454cdec..3231bd4 100644
--- a/themes/CodeIT/layouts/posts/rss.xml
+++ b/themes/CodeIT/layouts/posts/rss.xml
@@ -1,4 +1,4 @@
-<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
+<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
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>