mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-03 22:22:00 +08:00
feat: 過期通知優化,可單獨文章關閉
fix: 修復説説評論 css 受主題影響的 bug
This commit is contained in:
1 parent
fb4ab20169
commit
91c8c5cd4b
25 files changed
+83
-81
No files matched your search
@@ -69,16 +69,6 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let noticeOutdate = 'undefined'
|
|
||||||
if (theme.noticeOutdate && theme.noticeOutdate.enable) {
|
|
||||||
noticeOutdate = JSON.stringify({
|
|
||||||
limitDay: theme.noticeOutdate.limit_day,
|
|
||||||
position: theme.noticeOutdate.position,
|
|
||||||
messagePrev: theme.noticeOutdate.message_prev,
|
|
||||||
messageNext: theme.noticeOutdate.message_next,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let highlight = 'undefined'
|
let highlight = 'undefined'
|
||||||
let syntaxHighlighter = config.syntax_highlighter
|
let syntaxHighlighter = config.syntax_highlighter
|
||||||
let highlightEnable = syntaxHighlighter ? ['highlight.js', 'prismjs'].includes(syntaxHighlighter) : (config.highlight.enable || config.prismjs.enable)
|
let highlightEnable = syntaxHighlighter ? ['highlight.js', 'prismjs'].includes(syntaxHighlighter) : (config.highlight.enable || config.prismjs.enable)
|
||||||
@@ -100,7 +90,6 @@ script.
|
|||||||
algolia: !{algolia},
|
algolia: !{algolia},
|
||||||
localSearch: !{localSearch},
|
localSearch: !{localSearch},
|
||||||
translate: !{translate},
|
translate: !{translate},
|
||||||
noticeOutdate: !{noticeOutdate},
|
|
||||||
highlight: !{highlight},
|
highlight: !{highlight},
|
||||||
copy: {
|
copy: {
|
||||||
success: '!{_p("copy.success")}',
|
success: '!{_p("copy.success")}',
|
||||||
|
|||||||
@@ -23,6 +23,5 @@ script#config-diff.
|
|||||||
isHome: !{is_home()},
|
isHome: !{is_home()},
|
||||||
isHighlightShrink: !{isHighlightShrink},
|
isHighlightShrink: !{isHighlightShrink},
|
||||||
isToc: !{showToc},
|
isToc: !{showToc},
|
||||||
postUpdate: '!{full_date(page.updated)}',
|
|
||||||
isShuoshuo: !{page.type == 'shuoshuo'}
|
isShuoshuo: !{page.type == 'shuoshuo'}
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
#article-container
|
#article-container.container
|
||||||
!= page.content
|
!= page.content
|
||||||
Loaded 3 of 25 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user