better search, fix spacing support, bump hugo-obsidian

This commit is contained in:
Jacky Zhao 2021-11-20 22:53:26 -08:00
parent 82ba843e42
commit 48eb9ebc5f
8 changed files with 9 additions and 9 deletions

View file

@ -185,8 +185,8 @@
return [...results[0].result]
}
}
const allIds = [...getByField('title'), ...getByField('content')]
const finalResults = allIds.map(fetch)
const allIds = new Set([...getByField('title'), ...getByField('content')])
const finalResults = [...allIds].map(fetch)
// display
if (finalResults.length === 0) {