参考:Hexo+Next主题 文章添加阅读次数,访问量等
编辑主题配置文件-config.yml
,我用的是next主题,其他主题的我也不知道.需要修改的地方我在行末加注释,编辑后如下
hexo博客next主题添加启用统计阅读次数及访问量
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
busuanzi_count:
# count values only if the other configs are false
enable: true #"false"改为"true"
# custom uv span for the whole site
site_uv: true
site_uv_header: <i class="fa fa-user"></i> 访问人数 #添加"访问人数"
site_uv_footer:
# custom pv span for the whole site
site_pv: true
site_pv_header: <i class="fa fa-eye"></i> 总访问量 #添加"总访问量"
site_pv_footer: 次 #添加"次"
# custom pv span for one page only
page_pv: true
page_pv_header: <i class="fa fa-file-o"></i> 浏览 #添加"浏览"
page_pv_footer: 次 #添加"次"
请作者喝一杯咖啡