网上找了一大堆博客,发现添加方式很繁琐。统计的方式有LeanCloud和不蒜子。本文介绍的是不蒜子统计方法。
操作:
打开文件:
themes/next/_config.yml
# 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:
相关操作:
1. enable: true
2. 添加相关中文说明,不添加也行。
效果展示:
阅读数
访客数,以及访问量
更多文章:
1.为NexT主题添加文章阅读量统计功能