Jacky Zhao
2021-11-21 48eb9ebc5fdba0845c6295e8abb6f574ec75171d
layouts/partials/search.html
@@ -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) {