summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index 8784541..8584810 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -26,5 +26,6 @@ var idx = lunr(function () {
function do_search(queryterm) {
- return idx.search(queryterm);
+ const result = idx.search(queryterm);
+ return result.map(r => pages.find((p) => p.id === r.ref));
}