From 48eb9ebc5fdba0845c6295e8abb6f574ec75171d Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 21 Nov 2021 06:53:26 +0000
Subject: [PATCH] better search, fix spacing support, bump hugo-obsidian

---
 layouts/partials/search.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 62556a4..b12b731 100644
--- a/layouts/partials/search.html
+++ b/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) {

--
Gitblit v1.10.0