配置
- 找到themes->next->layout->_partials->footer.swig
加入如下代码
12345678{% if theme.footer.counter %}<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span><span class="post-meta-divider">|</span><span id="busuanzi_container_site_uv">本站访客数<span id="busuanzi_value_site_uv"></span>人</span>{% endif %}<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>在themes->next->_config.yml中加检查配置,没有则添加
123456789101112131415busuanzi_count:# count values only if the other configs are falseenable: true# custom uv span for the whole sitesite_uv: truesite_uv_header: <i class="fa fa-user"> 本站访客数</i>site_uv_footer: 次# custom pv span for the whole sitesite_pv: truesite_pv_header: <i class="fa fa-eye"> 本站总访问量</i>site_pv_footer: 次# custom pv span for one page onlypage_pv: truepage_pv_header: <i class="fa fa-file-o"> 本文总阅读量</i>page_pv_footer: 次