Skip to content

Commit

Permalink
Update lunr.js to fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
luck3y committed Sep 19, 2024
1 parent a401a68 commit 73a7f2b
Show file tree
Hide file tree
Showing 2 changed files with 3,372 additions and 2,872 deletions.
6 changes: 4 additions & 2 deletions _includes/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
query = "";
for(const term of searchTerms) {
query += ` +${term}`
if (term.length > 0) {
query += "+" + term.trim() + " "
}
}
return query.trim();
Expand Down Expand Up @@ -138,4 +140,4 @@
</form>
<div id="lunrsearchresults">
<ul id="search-result" name="search-result" class="search-result"></ul>
</div>
</div>
Loading

0 comments on commit 73a7f2b

Please sign in to comment.