mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
breaking changes: 移除 subtitle 一句網調用(api 已失效)
feat: 右下角按鈕增加預覽進度顯示 feat: toc可設置是否顯示預覽進度 fix: 修復 TypeError: require(...) is not a function 的報錯 #1102 improvement: 日期設置相對日期時,文章的日期格式和最新評論的日期格式統一為 年月日
This commit is contained in:
1 parent
5c0d578e4c
commit
f218a0a14a
10 files changed
+75
-63
No files matched your search
+5
-2
@@ -185,6 +185,7 @@ toc:
|
|||||||
number: true
|
number: true
|
||||||
expand: false
|
expand: false
|
||||||
style_simple: false # for post
|
style_simple: false # for post
|
||||||
|
scroll_percent: true
|
||||||
|
|
||||||
post_copyright:
|
post_copyright:
|
||||||
enable: true
|
enable: true
|
||||||
@@ -632,8 +633,7 @@ subtitle:
|
|||||||
# source 調用第三方服務
|
# source 調用第三方服務
|
||||||
# source: false 關閉調用
|
# source: false 關閉調用
|
||||||
# source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/
|
# source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/
|
||||||
# source: 2 調用一句網(簡體) http://yijuzhan.com/
|
# source: 2 調用今日詩詞(簡體) https://www.jinrishici.com/
|
||||||
# source: 3 調用今日詩詞(簡體) https://www.jinrishici.com/
|
|
||||||
# subtitle 會先顯示 source , 再顯示 sub 的內容
|
# subtitle 會先顯示 source , 再顯示 sub 的內容
|
||||||
source: false
|
source: false
|
||||||
# 如果關閉打字效果,subtitle 只會顯示 sub 的第一行文字
|
# 如果關閉打字效果,subtitle 只會顯示 sub 的第一行文字
|
||||||
@@ -753,6 +753,9 @@ darkmode:
|
|||||||
# autoChangeMode: false
|
# autoChangeMode: false
|
||||||
autoChangeMode: false
|
autoChangeMode: false
|
||||||
|
|
||||||
|
# show scroll percent in scroll-to-top button
|
||||||
|
rightside_scroll_percent: false
|
||||||
|
|
||||||
# Don't modify the following settings unless you know how they work (非必要請不要修改 )
|
# Don't modify the following settings unless you know how they work (非必要請不要修改 )
|
||||||
# Choose: readmode,translate,darkmode,hideAside,toc,chat,comment
|
# Choose: readmode,translate,darkmode,hideAside,toc,chat,comment
|
||||||
# Don't repeat 不要重複
|
# Don't repeat 不要重複
|
||||||
|
|||||||
@@ -120,5 +120,9 @@ script.
|
|||||||
},
|
},
|
||||||
isPhotoFigcaption: !{theme.photofigcaption},
|
isPhotoFigcaption: !{theme.photofigcaption},
|
||||||
islazyload: !{theme.lazyload.enable},
|
islazyload: !{theme.lazyload.enable},
|
||||||
isAnchor: !{theme.anchor.auto_update || false}
|
isAnchor: !{theme.anchor.auto_update || false},
|
||||||
|
percent: {
|
||||||
|
toc: !{theme.toc.scroll_percent},
|
||||||
|
rightside: !{theme.rightside_scroll_percent},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -57,4 +57,5 @@ mixin rightsideItem(array)
|
|||||||
+rightsideItem(showArray)
|
+rightsideItem(showArray)
|
||||||
|
|
||||||
button#go-up(type="button" title=_p("rightside.back_to_top"))
|
button#go-up(type="button" title=_p("rightside.back_to_top"))
|
||||||
|
span.scroll-percent
|
||||||
i.fas.fa-arrow-up
|
i.fas.fa-arrow-up
|
||||||
Loaded 3 of 10 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user