美文网首页工具
Hexo+Next主题 文章添加阅读次数,访问量等

Hexo+Next主题 文章添加阅读次数,访问量等

作者: 4ea0af17fd67 | 来源:发表于2017-11-21 10:45 被阅读1927次

本章所讲给文章设置阅读量,启用不蒜子统计,仅限于文章页面显示阅读书,在首页不显示。效果如下图所示:

[图片上传中...(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: 次

相关文章

网友评论

    本文标题:Hexo+Next主题 文章添加阅读次数,访问量等

    本文链接:https://www.haomeiwen.com/subject/ghvivxtx.html