From e4caa0d1d7fb3bdca6dee07fee299a3acdf40043 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 28 Dec 2021 00:35:42 +0000
Subject: [PATCH] add taxonomy and term lists
---
layouts/partials/search.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 62556a4..90f4040 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) {
@@ -252,4 +252,4 @@
})
})
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.10.0