日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

yelee博客的busuanzi访客统计失效问题解决

發布時間:2023/12/20 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 yelee博客的busuanzi访客统计失效问题解决 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

修改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>本站訪客數<span id="busuanzi_value_site_uv"></span>人</span></span><% } %></div><% } %></div> </footer>

?

?

?

不蒜子的訪問量過大的問題,已經有博客[2]提到,這個我測試了下是只有本地測試的情況下才會如此,hexo d以后就會恢復正常,所以放心用吧。

預覽效果依然是:

appleyuchi.github.io

?

對了另外這里備注一下,上面代碼中的

<i class="fa fa-heart animated infinite pulse"></i>

是什么意思呢,其實就是使用哪個小圖標的意思。

不同的class后面跟著的引號里面的內容會決定展現在頁面上的是眼睛圖案還是一個人形圖案

參考鏈接:

[1]https://www.cnblogs.com/zengfp/p/10103437.html

[2]https://lfwen.site/2016/11/13/next-busuanzi-vistor-count/

總結

以上是生活随笔為你收集整理的yelee博客的busuanzi访客统计失效问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。