Skip to content

Commit

Permalink
feat: 访问量插件
Browse files Browse the repository at this point in the history
feat: 访问量插件
  • Loading branch information
admans committed Aug 2, 2024
1 parent 6e4f9e3 commit af1978c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
7 changes: 5 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ menu:
url: /pages/navi.html

# 点击页面文字冒出特效,不需要请设置为false
extClickEffect: false
extClickEffect: true

# Google Adsense,不需要请设置为false
# _includes/ext-adsense.html 里面修改为自己的配置
extAdsense: false
extAdsense: true

# 数学公式支持,比较影响加载速度,不需要请设置为false
extMath: false

# 显示访问量统计,由不蒜子提供服务
extCount: true
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
{%- comment %} 请保留主题来源,么么哒~ {% endcomment %}
<span>Theme By</span>
<a href="https://github.com/TMaize/tmaize-blog">TMaize</a>

{%- if site.extCount %}
<span>总访问量</span>
<span id="busuanzi_value_site_pv"></span>
{% endif %}
<div class="footer-btn theme-toggler hide">
<i class="svg-icon icon-theme-light"></i>
</div>
Expand Down
4 changes: 4 additions & 0 deletions _includes/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
{% include ext-mathjax.html %}
{% endif %}
{% endif %}

{%- if site.extCount %}
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
{% endif %}
8 changes: 7 additions & 1 deletion _layouts/mypost.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
<div class="page page-post">
<h1 class="title" id="{{ page.title }}">{{ page.title }}</h1>
{% if page.date %}
<div class="subtitle">{{site.author}} 于 {{ page.date | date: "%Y-%m-%d" }} 发布</div>
<div class="subtitle">
<span>{{site.author}} 于 {{ page.date | date: "%Y-%m-%d" }} 发布</span>
{%- if site.extCount %}
<span>浏览量</span>
<span id="busuanzi_value_page_pv"></span>
{% endif %}
</div>
{% endif %}
<div class="post">
{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion pages/navi.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ title: 导航

## 下载站

[乐赏](http://gbtgame.me/ "乐赏") [天使动漫](https://www.tsdm39.com/ "天使动漫") [懒得勤快](https://masuit.com/ "懒得勤快") [果核剥壳](https://www.ghxi.com/ "果核剥壳") [4K世界](https://www.4ksj.com/ "4K世界") [影视森林](http://549.tv/ "影视森林") [超能搜](https://www.chaonengsou.com/ "超能搜") [精品下载](http://www.j9p.com/ "精品下载") [ACG盒子](https://www.acgbox.link/ "ACG盒子") [PPTSTORE](https://www.pptstore.net/ "PPTSTORE") [云盘资源网](https://www.yunpanziyuan.top/ "云盘资源网") [RuTracker.org](https://rutracker.net/forum/index.php "RuTracker.org") [易搜](http://yiso.eu.org/ "易搜") [Office Tool Plus](https://otp.landian.vip/zh-cn/ "Office Tool Plus") [BT之家1LOU站](https://www.1lou.cc/ "BT之家1LOU站") [阿里云盘资源共享站](https://pan666.cn/ "阿里云盘资源共享站") [高清剧集网](https://www.BTHDTV.com "高清剧集网") [ahhhhfs](https://www.ahhhhfs.com/ "ahhhhfs")
[乐赏](http://gbtgame.me/ "乐赏") [天使动漫](https://www.tsdm39.com/ "天使动漫") [懒得勤快](https://masuit.com/ "懒得勤快") [果核剥壳](https://www.ghxi.com/ "果核剥壳") [4K世界](https://www.4ksj.com/ "4K世界") [影视森林](http://549.tv/ "影视森林") [超能搜](https://www.chaonengsou.com/ "超能搜") [精品下载](http://www.j9p.com/ "精品下载") [ACG盒子](https://www.acgbox.link/ "ACG盒子") [PPTSTORE](https://www.pptstore.net/ "PPTSTORE") [云盘资源网](https://www.yunpanziyuan.top/ "云盘资源网") [RuTracker.org](https://rutracker.net/forum/index.php "RuTracker.org") [易搜](http://yiso.eu.org/ "易搜") [Office Tool Plus](https://otp.landian.vip/zh-cn/ "Office Tool Plus") [BT之家1LOU站](https://www.1lou.cc/ "BT之家1LOU站") [阿里云盘资源共享站](https://pan666.cn/ "阿里云盘资源共享站") [高清剧集网](https://www.BTHDTV.com "高清剧集网") [ahhhhfs](https://www.ahhhhfs.com/ "ahhhhfs") [智享阁](https://www.esnpc.com/ "智享阁")

## 其他

Expand Down

0 comments on commit af1978c

Please sign in to comment.