From e26a8073e8ae9f832210922769ac944d04b4f6d1 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Mon, 21 Nov 2022 08:14:27 +0000 Subject: [PATCH] webite: optimize search result. fix #159 afbfcc2285f473ae3d3c72bd2d39e7a275312b63 --- index.html | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 955ca156..46e1eac1 100644 --- a/index.html +++ b/index.html @@ -689,7 +689,7 @@

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+
diff --git a/js/main.js b/js/main.js index 93ba4317..1edf795b 100644 --- a/js/main.js +++ b/js/main.js @@ -41,7 +41,7 @@ const fuse = new Fuse(REFS_DATA, { matchEmptyQuery: !0, threshold: .1, keys: [ - { name: "name", weight: 12 }, + { name: "name", weight: 20 }, { name: 'intro', weight: 2 }, { name: 'tags', weight: 2 }, { name: 'sections.t', weight: 5 }