File tree 4 files changed +65
-0
lines changed
4 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,23 @@ leancloud_visitors:
288
288
app_id : # <app_id>
289
289
app_key : # <app_key>
290
290
291
+ # Show PV/UV of the website/page with busuanzi.
292
+ # Get more information on http://ibruce.info/2015/04/04/busuanzi/
293
+ busuanzi_count :
294
+ # count values only if the other configs are false
295
+ enable : false
296
+ # custom uv span for the whole site
297
+ site_uv : true
298
+ site_uv_header : <i class="fa fa-user"></i>
299
+ site_uv_footer :
300
+ # custom pv span for the whole site
301
+ site_pv : true
302
+ site_pv_header : <i class="fa fa-eye"></i>
303
+ site_pv_footer :
304
+ # custom pv span for one page only
305
+ page_pv : true
306
+ page_pv_header : <i class="fa fa-file-o"></i>
307
+ page_pv_footer :
291
308
292
309
# Tencent analytics ID
293
310
# tencent_analytics:
Original file line number Diff line number Diff line change 115
115
</span>
116
116
{% endif %}
117
117
118
+ {% if not is_index and theme.busuanzi_count.enable and theme.busuanzi_count.page_pv %}
119
+ |
120
+ <span class="page-pv">{{ theme.busuanzi_count.page_pv_header }}
121
+ <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>{{ theme.busuanzi_count.page_pv_footer }}
122
+ </span>
123
+ {% endif %}
118
124
</div>
119
125
</header>
120
126
{% endif %}
Original file line number Diff line number Diff line change 19
19
</a>
20
20
</div>
21
21
22
+ {% if theme.busuanzi_count.enable %}
23
+ <div class="busuanzi-count">
24
+ <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
25
+ {% if theme.busuanzi_count.site_uv %}
26
+ <span class="site-uv">{{ theme.busuanzi_count.site_uv_header }}<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>{{ theme.busuanzi_count.site_uv_footer }}</span>
27
+ {% endif %}
28
+ {% if theme.busuanzi_count.site_pv %}
29
+ <span class="site-pv">{{ theme.busuanzi_count.site_pv_header }}<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>{{ theme.busuanzi_count.site_pv_footer }}</span>
30
+ {% endif %}
31
+ </div>
32
+ {% endif %}
33
+
22
34
{% block footer %}{% endblock %}
Original file line number Diff line number Diff line change 24
24
}
25
25
}
26
26
27
+ .busuanzi-count {
28
+ & :before {
29
+ content : " " ;
30
+ float : left ;
31
+ width : 260px ;
32
+ min-height : 25px ;
33
+ }
34
+ }
35
+
36
+ .site-uv ,
37
+ .site-pv ,
38
+ .page-pv {
39
+ display : inline-block ;
40
+
41
+ .busuanzi-value {
42
+ margin : 0 5px ;
43
+ }
44
+ }
45
+
46
+ if hexo-config ("busuanzi_count.site_pv" ) and hexo-config ("busuanzi_count.site_uv" )
47
+ .site-uv
48
+ {
49
+ margin-right : 10px ;
50
+
51
+ & ::after {
52
+ content : "|" ;
53
+ padding-left : 10px ;
54
+ }
55
+ }
56
+
27
57
.cc-license {
28
58
margin-top : 10px ;
29
59
text-align : center ;
You can’t perform that action at this time.
0 commit comments