Skip to content

Commit 5bff3fc

Browse files
committed
新增访客地图
1 parent daf3f83 commit 5bff3fc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

themes/butterfly/_config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ post_meta:
162162

163163
# wordcount (字數統計)
164164
wordcount:
165-
enable: false
165+
enable: true
166166
post_wordcount: true
167167
min2read: true
168168
total_wordcount: true
@@ -405,8 +405,8 @@ footer:
405405
owner:
406406
enable: true
407407
since: 2016
408-
custom_text: 感谢大家的到访~
409-
copyright: true # Copyright of theme and framework
408+
custom_text: A.P.C.科学联盟/格物社 · 在线电子图书馆
409+
copyright: false # Copyright of theme and framework
410410

411411
# Analysis
412412
# --------------------------------------
@@ -635,7 +635,7 @@ aside:
635635
link: https://qm.qq.com/cgi-bin/qm/qr?k=mW2aAdiBaFHMoHIjCBYwMkKY5P8Oh1Ab&noverify=0
636636

637637
card_announcement:
638-
enable: true
638+
enable: false
639639
content: 欢迎光临A.P.C.科学联盟在线图书馆;)!<br>这里存放着<b>往期科普组的文章</b>以及<b>海量电子资源</b>(见顶部栏的资源入口),如果你愿意的话,可以在每篇文章底部的赞赏按钮里赞助我们做得更好!<br><hr>如果你愿意加入我们,欢迎添加群聊:605923025
640640
card_recent_post:
641641
enable: true
@@ -644,7 +644,7 @@ aside:
644644
sort_order: # Don't modify the setting unless you know how it works
645645
card_categories:
646646
enable: true
647-
limit: 18 # if set 0 will show all
647+
limit: 6 # if set 0 will show all
648648
expand: none # none/true/false
649649
sort_order: # Don't modify the setting unless you know how it works
650650
card_tags:
@@ -663,13 +663,14 @@ aside:
663663
enable: true
664664
post_count: true
665665
last_push_date: true
666+
map: true
666667
sort_order: # Don't modify the setting unless you know how it works
667668

668669
# busuanzi count for PV / UV in site
669670
# 訪問人數
670671
busuanzi:
671672
site_uv: true
672-
site_pv: true
673+
site_pv: false
673674
page_pv: true
674675

675676
# Time difference between publish date and now (網頁運行時間)

themes/butterfly/layout/includes/widget/card_webinfo.pug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ if theme.aside.card_webinfo.enable
44
i.fas.fa-chart-line
55
span= _p('aside.card_webinfo.headline')
66
.webinfo
7+
if theme.aside.card_webinfo.map
8+
.webinfo-item
9+
script(type="text/javascript" id="clstr_globe" src=url_for('//clustrmaps.com/globe.js?d=jmZyciKGGLH6lXdrapXyVjzTuxakhRoo1yZTvN-_Oj8'))
710
if theme.aside.card_webinfo.post_count
811
.webinfo-item
912
.item-name= _p('aside.card_webinfo.article_name') + " :"

0 commit comments

Comments
 (0)