Skip to content

Commit 7a6d2e6

Browse files
committed
feat: 更新配置和依赖项
1 parent 1469283 commit 7a6d2e6

3 files changed

Lines changed: 23 additions & 11 deletions

File tree

_config.butterfly.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ category_per_img:
9494
footer_img: false
9595

9696
# Website Background
97-
# Can set it to color or image url
97+
# Can set it to color, image URL or an array containing colors and/or image URLs
98+
# If an array is provided, a random background will be selected from the array on each load
9899
background:
99100

100101
cover:
@@ -266,8 +267,8 @@ footer:
266267
copyright:
267268
enable: true
268269
version: true
269-
custom_text:
270-
270+
custom_text:
271+
271272
# --------------------------------------
272273
# Aside Settings
273274
# --------------------------------------
@@ -321,6 +322,7 @@ aside:
321322
# If set 0 will show all
322323
limit: 40
323324
color: false
325+
custom_colors:
324326
# Order of tags, random/name/length
325327
orderby: random
326328
# Sort of order. 1, asc for ascending; -1, desc for descending
@@ -518,12 +520,12 @@ share:
518520
# Share.js
519521
# https://github.com/overtrue/share.js
520522
sharejs:
521-
sites: facebook,twitter,wechat,weibo,qq
523+
sites: facebook,x,wechat,weibo,qq
522524

523525
# AddToAny
524526
# https://www.addtoany.com/
525527
addtoany:
526-
item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_link
528+
item: facebook,x,wechat,sina_weibo,facebook_messenger,email,copy_link
527529

528530
# --------------------------------------
529531
# Comments System
@@ -725,7 +727,7 @@ google_tag_manager:
725727

726728
# Google Adsense
727729
google_adsense:
728-
enable: false
730+
enable: true
729731
auto_ads: true
730732
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
731733
client: ca-pub-9415424991714769
@@ -942,6 +944,10 @@ mermaid:
942944
theme:
943945
light: default
944946
dark: dark
947+
# Enable "Open in New Tab" button to view diagram in a separate window
948+
open_in_new_tab: true
949+
# Enable zoom and pan interactions on diagrams
950+
zoom_pan: true
945951

946952
# chartjs
947953
# see https://www.chartjs.org/docs/latest/

package-lock.json

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@
3434
"hexo-theme-butterfly": "^5.5.4",
3535
"hexo-theme-landscape": "^1.1.0",
3636
"hexo-wordcount": "^6.0.1"
37+
},
38+
"devDependencies": {
39+
"baseline-browser-mapping": "^2.10.12"
3740
}
3841
}

0 commit comments

Comments
 (0)