本章所讲给文章设置阅读量,启用不蒜子统计,仅限于文章页面显示阅读书,在首页不显示。效果如下图所示:
[图片上传中...(image-b928aa-1511232295463-1)]
打开 Hexo 目录下的 \themes\next\ _config.yml 文件
[图片上传中...(image-bce1cc-1511232295463-0)]
# Show PV/UV of the website/page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi/
# 增加不算子访问数量统计
busuanzi_count:
# count values only if the other configs are false
enable: 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: 次