Hexo-theme-next: 阅读计数。对比LeanCloud和不蒜子

Created on 6 Apr 2016  ·  10Comments  ·  Source: iissnan/hexo-theme-next

Expected behavior (预期行为)

阅读次数统计

Actual behavior (实际行为)

目前使用的是LeanCloud统计

Steps to reproduce the behavior (重现步骤)

增加不蒜子统计,见不蒜子
只需要几行代码

引入脚本

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script> 

添加到文章指定位置 应该是。。不会写代码😁

<span id="busuanzi_value_page_pv"><i class="fa fa-spinner"></i></span> Hits

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces

Other Informations (Like Browser, System, Screenshots)

3rd party service

Most helpful comment

@iissnan 合并之后测试一下。 底部的样式==
屏幕快照 2016-04-10 00.49.02.png
屏幕快照 2016-04-10 00.48.52.png

All 10 comments

加一个配置不难,有感兴趣的话可以给我提 PR

前天用 Pingdom 測試,發現不蒜子的 js 載入時間特長,想說也用不到這個功能,就先拿掉了。不過安裝起來確實很容易。

不蒜子读取数据的速度是比较慢,能自建服务器的话可能会更好用

Leancloud的可靠性应该要比不蒜子好。

刚才测了一下,读取js的速度还可以呀。
PR https://github.com/iissnan/hexo-theme-next/pull/808 只有几行代码,测试没有问题,并且默认使用

用不蒜子 主要是避免再注册一个Leancloud了,话说eancloud 的功能真的蛮多的。

而且不蒜子的js放在七牛,速度应该不慢,如果说速度慢,可能是七牛的原因,七牛问答社区 很多人反映这几天云存储速度慢==

我也提交了个#809 主要是提高可定制性,将某页面的pv也加入,但是因为不蒜子不支持在主页显示,所以只能在文章页可见。将全站的统计加入。
可能有点dirty,上传后缩进也乱了。。。

已合并 @panzhitian 的版本,多谢大家的努力。

@iissnan 合并之后测试一下。 底部的样式==
屏幕快照 2016-04-10 00.49.02.png
屏幕快照 2016-04-10 00.48.52.png

兼容性还是差点,我只在Pisces上测试了。
css那里还需增加条件,明天再fix。

@carpliyz 那可以同时在一个博客上启用LeanCloud和不蒜子 两套统计吗?会不会冲突?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YorksonChang picture YorksonChang  ·  3Comments

bingstyle picture bingstyle  ·  3Comments

chy9002 picture chy9002  ·  3Comments

liyuan989 picture liyuan989  ·  3Comments

aiplay picture aiplay  ·  4Comments