mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: 增加配置 disable_top_img,禁用所有的top_img
fix: 修復 background-image 遇到連結有括號時會無法顯示的bug fix: Readmode 標題邊距 fix: 修復twikoo 評論數獲取會因為地域問題報錯的bug
This commit is contained in:
1 parent
c373b64cfb
commit
81fc48df40
6 files changed
+12
-7
No files matched your search
@@ -86,6 +86,9 @@ avatar:
|
||||
img:
|
||||
effect: false
|
||||
|
||||
# Disable all banner image
|
||||
disable_top_img: false
|
||||
|
||||
# The banner image of home page
|
||||
index_img:
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if page.top_img !== false
|
||||
if !theme.disable_top_img && page.top_img !== false
|
||||
if is_post()
|
||||
- var top_img = page.top_img || page.cover || page.randomcover || theme.default_top_img
|
||||
else if is_page()
|
||||
|
||||
@@ -21,6 +21,7 @@ script.
|
||||
const getCount = () => {
|
||||
twikoo.getCommentsCount({
|
||||
envId: '!{theme.twikoo.envId}',
|
||||
region: '!{theme.twikoo.region}',
|
||||
urls: [window.location.pathname],
|
||||
includeReply: false
|
||||
}).then(function (res) {
|
||||
|
||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user