yelee博客的busuanzi访客统计失效问题解决
生活随笔
收集整理的這篇文章主要介紹了
yelee博客的busuanzi访客统计失效问题解决
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
修改footer.ejs
<footer id="footer"><div class="outer"><div id="footer-info"><div class="footer-left"><i class="fa fa-copyright"></i> <% if (theme.since && !isNaN(theme.since) && theme.since < date(new Date(), 'YYYY')) { %><%- theme.since%>-<% } %><%= date(new Date(), 'YYYY') %> <%= config.author || config.title %></div><div class="footer-right"><a href="http://hexo.io/" target="_blank" title="<%= __('tooltip.Hexo') %>">Hexo</a> Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="<%= __('tooltip.Yelee') %> v<%= theme.Yelee %>">Yelee</a> by MOxFIVE <i class="fa fa-heart animated infinite pulse"></i></div></div><% if (theme.visit_counter.on) { %><div class="visit"><% if (theme.visit_counter.site_visit) { %><span style='display:inline'><span id="site-visit" title="<%= __('visit_counter.site') %>"><i class="fa fa-user" aria-hidden="true"></i>本站總訪問量<span id="busuanzi_value_site_pv"></span>次</span></span><% } %><% if (theme.visit_counter.site_visit && theme.visit_counter.page_visit) { %><span>| </span><% } %><% if (theme.visit_counter.page_visit) { %><span style='display:inline'><span id="page-visit" title="<%= __('visit_counter.page') %>"><i class="fa fa-eye animated infinite pulse" aria-hidden="true"></i>本頁面被訪問<span id="busuanzi_value_page_pv"></span>次</span></span><% } %><% if (theme.visit_counter.site_visit && theme.visit_counter.page_visit) { %><span>| </span><% } %><% if (theme.visit_counter.page_visit) { %><span style='display:inline'><span id="page-visit" title="<%= __('visit_counter.page') %>"><i class="fa fa-user" aria-hidden="true"></i>本站訪客數(shù)<span id="busuanzi_value_site_uv"></span>人</span></span><% } %></div><% } %></div> </footer>?
?
?
不蒜子的訪問量過大的問題,已經(jīng)有博客[2]提到,這個我測試了下是只有本地測試的情況下才會如此,hexo d以后就會恢復正常,所以放心用吧。
預覽效果依然是:
appleyuchi.github.io
?
對了另外這里備注一下,上面代碼中的
<i class="fa fa-heart animated infinite pulse"></i>是什么意思呢,其實就是使用哪個小圖標的意思。
不同的class后面跟著的引號里面的內(nèi)容會決定展現(xiàn)在頁面上的是眼睛圖案還是一個人形圖案
參考鏈接:
[1]https://www.cnblogs.com/zengfp/p/10103437.html
[2]https://lfwen.site/2016/11/13/next-busuanzi-vistor-count/
總結
以上是生活随笔為你收集整理的yelee博客的busuanzi访客统计失效问题解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: hexo博客完整备份
- 下一篇: hexo的yelee主题使用本地自己指定