diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-30 21:34:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 21:34:17 +0300 |
commit | 79df5c667ec596ac0137e1deefe8e94eef585923 (patch) | |
tree | a6e94283a2b0b0b8365bac652adcad3ad1f479f0 /exampleSite/config.toml | |
parent | 1af17ef1a36d9c3689ae77e63388eb63a75f9d61 (diff) |
feat(search): add snippetLength config for search results (#296)
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r-- | exampleSite/config.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e79e444..f2fc133 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -121,6 +121,8 @@ enableEmoji = true placeholder = "" # max number of results length maxResultLength = 10 + # snippet length of the result + snippetLength = 30 # HTML tag name of the highlight part in results highlightTag = "em" [languages.en.params.search.algolia] @@ -315,6 +317,8 @@ enableEmoji = true placeholder = "" # 最大结果数目 maxResultLength = 10 + # 结果内容片段长度 + snippetLength = 50 # 搜索结果中高亮部分的 HTML 标签 highlightTag = "em" [languages.zh-cn.params.search.algolia] @@ -505,6 +509,8 @@ enableEmoji = true placeholder = "" # max number of results length maxResultLength = 10 + # snippet length of the result + snippetLength = 30 # HTML tag name of the highlight part in results highlightTag = "em" [languages.fr.params.search.algolia] |