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-28 21:34:28 +0300
committerGitHub <noreply@github.com>2020-04-28 21:34:28 +0300
commit16a4e94117f118a358d1c0184db48e70a0aa63a9 (patch)
treea99069c4308bf229b87745c1dfe91661998b8b82 /exampleSite/config.toml
parentaa5f490aae97097c4b5984ef4e753d160d89d103 (diff)
feat(search): add more params for search and improve search index (#279)
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r--exampleSite/config.toml18
1 files changed, 15 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 499d193..67654e5 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -114,10 +114,14 @@ enableEmoji = true
enable = true
# type of search engine ("lunr", "algolia")
type = "algolia"
- # index length of the content
+ # max index length of the chunked content
contentLength = 5000
# placeholder of the search bar
placeholder = ""
+ # max number of results length
+ maxResultLength = 10
+ # HTML tag name of the highlight part in results
+ highlightTag = "em"
[languages.en.params.search.algolia]
index = "index.en"
appID = "PASDMWALPK"
@@ -303,10 +307,14 @@ enableEmoji = true
enable = true
# 搜索引擎的类型 ("lunr", "algolia")
type = "algolia"
- # 文章内容索引长度
+ # 文章内容最长索引长度
contentLength = 5000
# 搜索框的占位提示语
placeholder = ""
+ # 最大结果数目
+ maxResultLength = 10
+ # 搜索结果中高亮部分的 HTML 标签
+ highlightTag = "em"
[languages.zh-cn.params.search.algolia]
index = "index.zh-cn"
appID = "PASDMWALPK"
@@ -488,10 +496,14 @@ enableEmoji = true
enable = true
# type of search engine ("lunr", "algolia")
type = "algolia"
- # index length of the content
+ # max index length of the chunked content
contentLength = 5000
# placeholder of the search bar
placeholder = ""
+ # max number of results length
+ maxResultLength = 10
+ # HTML tag name of the highlight part in results
+ highlightTag = "em"
[languages.fr.params.search.algolia]
index = "index.fr"
appID = "PASDMWALPK"