# LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加 # LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase leancloud: app_id:你的AppId app_key:你的AppKey # REST API 服务器地址,国际版不填 # Only the Chinese mainland users need to set server_url:你的RESTAPI服务器地址 # 统计页面时获取路径的属性 # Get the attribute of the page path during statistics path:window.location.pathname # 开启后不统计本地路径( localhost 与 127.0.0.1 ) # If true, ignore localhost & 127.0.0.1 ignore_local:false
打开文章的浏览量计数功能
这个在 _config.fluid.yml 的 post 配置下
1 2 3 4 5 6 7 8 9 10
post: # 浏览量计数 # Number of visits views: enable:true # 统计数据来源 # Data Source # Options: busuanzi | leancloud source:"leancloud" format:"{} 次"
# 统计数据来源,使用 leancloud 需要设置 `web_analytics: leancloud` 中的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常 # Data source. If use leancloud, you need to set the parameter in `web_analytics: leancloud` # Options: busuanzi | leancloud source:"leancloud"
footer: # 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题 # HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people content:' <div> <span id="timeDate">载入天数...</span> <span id="times">载入时分秒...</span> <script src="/js/duration.js"></script> </div>