Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-30 19:05:38 +0300
committerGitHub <noreply@github.com>2020-04-30 19:05:38 +0300
commit4191e046d8763bfd7323a637508e47e3c7823c18 (patch)
tree43f51ab426f9b6c9d71edb0f2498b16fcc68ffab /src
parent3040ffa107eccd45416a5b9c5f3b85fdd50d94d8 (diff)
feat(search): improve search index by rm line number in code block (#294))
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/theme.js b/src/js/theme.js
index 51628a61..0f3bc000 100644
--- a/src/js/theme.js
+++ b/src/js/theme.js
@@ -238,7 +238,7 @@ class Theme {
this._algoliaIndex
.search(query, {
offset: 0,
- length: searchConfig.maxResultLength * 10,
+ length: searchConfig.maxResultLength * 5,
attributesToHighlight: ['title'],
attributesToSnippet: ['content:30'],
highlightPreTag: `<${searchConfig.highlightTag}>`,
@@ -637,7 +637,6 @@ class Theme {
this._resizeTimeout = null;
for (let event of this.resizeEventSet) event();
this.initToc();
- this.initSmoothScroll();
this.initMermaid();
this.initSearch();
}, 100);