aboutsummaryrefslogtreecommitdiff
path: root/layouts/post/single.html
diff options
context:
space:
mode:
authoralicewish <anywaywillgo@gmail.com>2017-12-20 21:33:05 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-12-20 21:33:05 +0800
commit5ec874d64e1fe31278acde1b1444b26620a0fbc8 (patch)
treebda6321c4d3e9b94113ac829bfbe536abbe18762 /layouts/post/single.html
parent1bb6eea8a84cbf67a7396abb63223f6a719aad60 (diff)
feat: add LiveRe and busuanzi (#17)
* LiveRe: commenting system * busuanzi: count web traffic
Diffstat (limited to 'layouts/post/single.html')
-rw-r--r--layouts/post/single.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 3a737d3..6f8e545 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -18,6 +18,10 @@
<span class="more-meta"> {{ printf $lang.posts.header.wordCount .WordCount }} </span>
<span class="more-meta"> {{ printf $lang.posts.header.readingTime .ReadingTime }} </span>
{{- end }}
+ {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.pagePV -}}
+ {{ $valueSpan := printf `<span id="busuanzi_value_page_pv"><img src="%s" alt="spinner.svg"/></span>` ("img/spinner.svg" | relURL) -}}
+ <span id="busuanzi_container_page_pv" class="more-meta"> {{ printf $lang.traffic.pagePV $valueSpan | safeHTML }} </span>
+ {{- end }}
</div>
</header>