# 增加计数器

使用的是 [不蒜子 - 极简网页计数器]

使用的是 不蒜子 - 极简网页计数器 (opens new window)

# 添加js连接

添加到 themes/hollow/layout/_partial/scripts.ejs

<!-- 不蒜子-计数服务 -->
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
1
2

# 在首页添加总访问量

添加到 themes/hollow/layout/index.ejs

阅读量<span id="busuanzi_value_page_pv"></span>
1

# 在文章页添加访问量

添加到 themes/hollow/layout/layout.ejs

<div style="padding: 20px; text-align: center;font-size: 13px">
    &copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
    <%= __('powered_by') %> <a href="http://hexo.io/" target="_blank">Hexo</a>
    <span id="busuanzi_container_site_pv">本站总访问量<span id="busuanzi_value_site_pv"></span></span>
</div>
1
2
3
4
5
更新时间: 2024/8/2 17:52:13