fix: 修復沒有配置 comments 的 use 時,會報錯的 bug

fix: 修復首頁置頂和更新時間的分割線間隔顯示問題
This commit is contained in:
Jerry
2021-11-25 00:03:31 +08:00
Unverified
parent ffeab5e20c
commit 444081846c
3 changed files with 5 additions and 3 deletions

View File

@@ -115,6 +115,8 @@ hexo.extend.filter.register('before_generate', () => {
let { use } = themeConfig.comments
if (!use) return
if (typeof use === 'string') {
use = use.split(',')
}