昨天下午发现网页加载时间被拖到1分钟了,就看看啥情况,原来是不蒜子的域名无了 由于butterfly主题自带的就是不蒜子,我就去搜有没有平替,还真找到了 Vercount,他可以直接使用不蒜子的配置,直接替换链接就行
在butterfly中使用vercount
- 在
themes\butterfly\layout\includes\additional-js.pug中,替换以下项
if 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中替换
if !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不蒜子的配置打开
busuanzi:
site_uv: true
site_pv: true
page_pv: true



