mirror of https://github.com/thangisme/notes.git
Update just-the-docs.js
This commit is contained in:
parent
1564ca4511
commit
9616dcf761
|
@ -52,8 +52,13 @@ function initSearch() {
|
|||
if (request.status >= 200 && request.status < 400) {
|
||||
// Success!
|
||||
var data = JSON.parse(request.responseText);
|
||||
|
||||
|
||||
{% if site.search_tokenizer_separator != nil %}
|
||||
lunr.tokenizer.separator = {{ site.search_tokenizer_separator }}
|
||||
{% else %}
|
||||
lunr.tokenizer.separator = /[\s\-/]+/
|
||||
{% end %}
|
||||
|
||||
var index = lunr(function () {
|
||||
this.ref('id');
|
||||
this.field('title', { boost: 200 });
|
||||
|
|
Loading…
Reference in New Issue