From 645fe2b02392fd4f94f1a898bc14e1ca223337fb Mon Sep 17 00:00:00 2001 From: avitex Date: Tue, 14 Apr 2020 20:54:50 +1000 Subject: [PATCH] remove search deps for now --- static/search.js | 7 ++++++- templates/root.html | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/search.js b/static/search.js index 1b97a09..aa4e884 100644 --- a/static/search.js +++ b/static/search.js @@ -1,3 +1,8 @@ +// TODO: remove +// +// +// + function debounce(func, wait) { var timeout; @@ -139,7 +144,7 @@ function initSearch() { var MAX_ITEMS = 10; var options = { - bool: "AND", + bool: 'AND', fields: { title: { boost: 2 }, body: { boost: 1 }, diff --git a/templates/root.html b/templates/root.html index 8dbdfef..3c3c3e1 100644 --- a/templates/root.html +++ b/templates/root.html @@ -19,8 +19,5 @@ {% block body %}{% endblock body %} - - -