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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-30 21:34:17 +0300
committerGitHub <noreply@github.com>2020-04-30 21:34:17 +0300
commit79df5c667ec596ac0137e1deefe8e94eef585923 (patch)
treea6e94283a2b0b0b8365bac652adcad3ad1f479f0 /exampleSite/config.toml
parent1af17ef1a36d9c3689ae77e63388eb63a75f9d61 (diff)
feat(search): add snippetLength config for search results (#296)
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r--exampleSite/config.toml6
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]