Jacky Zhao
2021-12-27 e1911a58fff3b96754b3b49837ac2d4dd4fcf5aa
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) {
@@ -252,4 +252,4 @@
        })
    })
</script>
</script>