feat(search): add snippetLength config for search results (#296)

This commit is contained in:
Dillon
2020-05-01 02:34:17 +08:00
committed by GitHub
parent 1af17ef1a3
commit 79df5c667e
7 changed files with 33 additions and 15 deletions

View File

@@ -232,6 +232,8 @@ Please open the code block below to view the complete sample configuration :(far
placeholder = ""
# {{< version 0.2.1 >}} max number of results length
maxResultLength = 10
# {{< version 0.2.3 >}} snippet length of the result
snippetLength = 30
# {{< version 0.2.1 >}} HTML tag name of the highlight part in results
highlightTag = "em"
[params.search.algolia]
@@ -984,6 +986,8 @@ Here is the search configuration in your [site configuration](#site-configuratio
placeholder = ""
# {{< version 0.2.1 >}} max number of results length
maxResultLength = 10
# {{< version 0.2.3 >}} snippet length of the result
snippetLength = 30
# {{< version 0.2.1 >}} HTML tag name of the highlight part in results
highlightTag = "em"
[params.search.algolia]