From 4c54fb88f00d64a9b1ceeb51e5f28e56ac27f9f2 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 15 Dec 2020 19:04:01 +0530 Subject: [PATCH] papermod: search opts 77ff1e6 --- .../posts/papermod/papermod-features/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/posts/papermod/papermod-features/index.md b/content/posts/papermod/papermod-features/index.md index 6adc0d43..f32ba0ec 100644 --- a/content/posts/papermod/papermod-features/index.md +++ b/content/posts/papermod/papermod-features/index.md @@ -167,6 +167,22 @@ For Multilingual use `search..md` ex. `search.es.md`. **Note:** Search will work only on current language, user is currently on ! +**Customizing Fusejs Options** + +Refer https://fusejs.io/api/options.html for Options, Add those as shown below. + +```yml +params: + fuseOpts: + isCaseSensitive: false + shouldSort: true + location: 0 + distance: 1000 + threshold: 0.4 + minMatchCharLength: 0 + keys: ["title", "permalink", "summary", "content"] +``` + ex: [search.md](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/search.md) ---