不蒜子out,拥抱Vercount
昨天下午发现网页加载时间被拖到1分钟了,就看看啥情况,原来是不蒜子的域名无了
由于butterfly主题自带的就是不蒜子,我就去搜有没有平替,还真找到了
Vercount,他可以直接使用不蒜子的配置,直接替换链接就行
在butterfly中使用vercount
在
themes\butterfly\layout\includes\additional-js.pug
中,替换以下项1
2if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
script(async data-pjax src= theme.asset.busuanzi || 'https://events.vercount.one/js')在
themes\butterfly\layout\includes\head\preconnect.pug
中替换1
2if !theme.asset.busuanzi && (theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv)
link(rel="preconnect" href="https://vercount.one")
vercount比不蒜子快多了,只是访问数据需要从头再来
最后将_config.butterfly.yml
不蒜子的配置打开1
2
3
4busuanzi:
site_uv: true
site_pv: true
page_pv: true
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 mccsjs🍋の小家!
评论