Permalink
Browse files

add: option for visit counter 网站计数设置

  • Loading branch information...
MOxFIVE committed Jan 21, 2016
1 parent c8b716d commit ebc43ccb4d9cbeafe1bf59c21ad9e297fe8eb72b
Showing with 29 additions and 13 deletions.
  1. +8 −1 _config.yml
  2. +21 −12 layout/_partial/footer.ejs
View
@@ -151,4 +151,11 @@ baidu_site:
google_site:
# Fill in Google Analytics tracking ID, #e.g. UA-XXXXX-X
google_analytics:
google_analytics:
# 不蒜子网站计数设置
# http://ibruce.info/2015/04/04/busuanzi/
visit_counter:
on: true
site_visit: 本站到访数
page_visit: 本页阅读量
View
@@ -8,17 +8,26 @@
<a href="http://hexo.io/" target="_blank" title="快速、简洁且高效的静态博客框架">Hexo</a> Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="简而不减双栏 Hexo 博客主题">Yelee</a> by MOxFIVE
</div>
</div>
<div class="visit">
<span id="busuanzi_container_site_pv" style='display:none'>
<span id="site-visit" >本站到访数:
<span id="busuanzi_value_site_uv"></span>
</span>
</span>
<span id="busuanzi_container_page_pv" style='display:none'>
<span id="page-visit">, 本页阅读量:
<span id="busuanzi_value_page_pv"></span>
</span>
</span>
</div>
<% if (theme.visit_counter.on) { %>
<div class="visit">
<% if (theme.visit_counter.site_visit) { %>
<span id="busuanzi_container_site_pv" style='display:none'>
<span id="site-visit" ><%= theme.visit_counter.site_visit %>:
<span id="busuanzi_value_site_uv"></span>
</span>
</span>
<% } %>
<% if (theme.visit_counter.site_visit && theme.visit_counter.page_visit) { %>
<span>, </span>
<% } %>
<% if (theme.visit_counter.page_visit) { %>
<span id="busuanzi_container_page_pv" style='display:none'>
<span id="page-visit"><%= theme.visit_counter.page_visit %>:
<span id="busuanzi_value_page_pv"></span>
</span>
</span>
<% } %>
</div>
<% } %>
</div>
</footer>

0 comments on commit ebc43cc

Please sign in to comment.