mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
fix: 修復沒有配置 comments 的 use 時,會報錯的 bug
fix: 修復首頁置頂和更新時間的分割線間隔顯示問題
This commit is contained in:
@@ -115,6 +115,8 @@ hexo.extend.filter.register('before_generate', () => {
|
||||
|
||||
let { use } = themeConfig.comments
|
||||
|
||||
if (!use) return
|
||||
|
||||
if (typeof use === 'string') {
|
||||
use = use.split(',')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user