注意的是,不同的浏览器显示效果不一样,这一点很坑。
1 修改主题配置文件中的自带的busuanzi_count(不知道怎么读)的统计功能
cd 博客目录
vim theme/next/_config.yml
# 将原来已有的那部分注释掉
busuanzi_count:
enable: true
total_visitors: true
total_visitors_icon: user
total_views: true
total_views_icon: eye
post_views: true
post_views_icon: eye
# 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
2 修改busuanzi_count的配置文件
cd 博客目录
vim theme/next/_config.yml
cd themes/next/layout/_third-party/analytics/