From fa57a841c31f555bef40658c81ec95dfa3a91fbf Mon Sep 17 00:00:00 2001 From: Navendu Pottekkat Date: Sat, 12 Aug 2023 13:22:40 +0530 Subject: [PATCH] docs: add configurable limit to search results (#1282) * docs: limit search results Signed-off-by: Navendu Pottekkat * Update with refer link to fuse docs --------- Signed-off-by: Navendu Pottekkat Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- config.yml | 1 + content/posts/papermod/papermod-features/index.md | 1 + content/posts/papermod/papermod-installation.md | 1 + content/posts/papermod/papermod-variables.md | 1 + 4 files changed, 4 insertions(+) diff --git a/config.yml b/config.yml index 3decb44c..fc63d7da 100644 --- a/config.yml +++ b/config.yml @@ -188,6 +188,7 @@ params: # distance: 1000 # threshold: 0.4 # minMatchCharLength: 0 + # limit: 10 # refer: https://www.fusejs.io/api/methods.html#search # keys: ["title", "permalink", "summary", "content"] markup: diff --git a/content/posts/papermod/papermod-features/index.md b/content/posts/papermod/papermod-features/index.md index f9ad2760..94a9e4a2 100644 --- a/content/posts/papermod/papermod-features/index.md +++ b/content/posts/papermod/papermod-features/index.md @@ -215,6 +215,7 @@ params: distance: 1000 threshold: 0.4 minMatchCharLength: 0 + # limit: 10 # refer: https://www.fusejs.io/api/methods.html#search keys: ["title", "permalink", "summary", "content"] ``` diff --git a/content/posts/papermod/papermod-installation.md b/content/posts/papermod/papermod-installation.md index 68e6309a..7a6e8ad7 100644 --- a/content/posts/papermod/papermod-installation.md +++ b/content/posts/papermod/papermod-installation.md @@ -251,6 +251,7 @@ params: distance: 1000 threshold: 0.4 minMatchCharLength: 0 + limit: 10 # refer: https://www.fusejs.io/api/methods.html#search keys: ["title", "permalink", "summary", "content"] menu: main: diff --git a/content/posts/papermod/papermod-variables.md b/content/posts/papermod/papermod-variables.md index 8f1a14b7..bfd7daa7 100644 --- a/content/posts/papermod/papermod-variables.md +++ b/content/posts/papermod/papermod-variables.md @@ -136,6 +136,7 @@ fuseOpts: distance: 1000 threshold: 0.4 minMatchCharLength: 0 + limit: 10 # refer: https://www.fusejs.io/api/methods.html#search keys: ["title", "permalink", "summary", "content"] ## can be less but not more than shown in list ```