开启不蒜子只需要到 themes/next/_config.yml
找到 busuanzi_count:
节点,将 enable
设置成 true
即可
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:
但是开启后只有 图标,没有访问量,是因为 hexo next
主题中的不蒜子脚本链接失效,
编辑\themes\next\layout\_third-party\analytics\busuanzi-counter.swig
文件,将里面的链接:
https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js
改成
https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js
即可