From bf9588061a3f948f6a0acb3abd953d50e9bfbf6f Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 28 Feb 2023 15:10:44 +0000
Subject: [PATCH] allow site owners to enable global-search #104
---
assets/js/search/variables.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/assets/js/search/variables.js b/assets/js/search/variables.js
index 758829c..6328c78 100644
--- a/assets/js/search/variables.js
+++ b/assets/js/search/variables.js
@@ -24,6 +24,8 @@
}
const search_page_element = elem('#searchpage');
+let search_scope_global = `{{ trim site.Params.search.global " " }}`;
+search_scope_global = search_scope_global == 'true' ? true : false;
// Fuse specific
let search_keys = ['body', 'title', 'link', 'section', 'id',];
--
Gitblit v1.10.0