不蒜子
不蒜子的配置很简单,先去不蒜子官网获取代码,修改hexo\themes\yilia\layout_partial\footer.ejs,在后,添加如下代码:
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
然后,根据个人爱好选择下列代码:
网站的总的访问量
<span id="busuanzi_container_site_pv">
总访问量: <span id="busuanzi_value_site_pv"></span>
</span>
网站总的访问人数:
<span id="busuanzi_container_site_uv">
总访客: <span id="busuanzi_value_site_uv"></span>
</span>
单页访问量:
<span id="busuanzi_container_page_pv">
本文总阅读量<span id="busuanzi_value_page_pv"></span>次
</span>
添加单页访问量,修改hexo\themes\yilia\layout_partial\article.ejs,在<%- partial(‘post/tag’) %> 后添加如下代码:
<span id="busuanzi_container_page_pv">
|阅读量(<span id="busuanzi_value_page_pv"></span>)
</span>
添加总的访问量跟总的访问人数,修改hexo\themes\yilia\layout_partial\footer.ejs:
<div calss="count-span">
<span id="busuanzi_container_site_pv">
总访问量: <span id="busuanzi_value_site_pv"></span>|
</span>
<span id="busuanzi_container_site_uv">
总访客: <span id="busuanzi_value_site_uv"></span>
</span>
</div>
我的footer.ejs配置
<footer id="footer">
<div class="outer">
<div id="footer-info">
<div class="footer-left">
© <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
</div>
<div class="footer-right">
<a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
</div>
</div>
<div calss="count-span">
<span id="busuanzi_container_site_pv">
总访问量: <span id="busuanzi_value_site_pv"></span>|
</span>
<span id="busuanzi_container_site_uv">
总访客: <span id="busuanzi_value_site_uv"></span>
</span>
</div>
</div>
</footer>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>