fix(search): fix default config
This commit is contained in:
parent
515331763d
commit
2efd859f71
3 changed files with 5 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ export function genIndex (path, content = '') {
|
|||
INDEXS[slug] = { slug, title: '', body: '' }
|
||||
} else {
|
||||
if (INDEXS[slug].body) {
|
||||
INDEXS[slug].body += ('\n' + token.text)
|
||||
INDEXS[slug].body += '\n' + (token.text || '')
|
||||
} else {
|
||||
INDEXS[slug].body = token.text
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue