Multi search match highlight

Added multiple previews, configurable by site.search.previews
Improved search-data.json
This commit is contained in:
Silvio Giebl
2020-01-02 11:55:38 +01:00
parent 74681aeb21
commit f1c306c814
5 changed files with 136 additions and 63 deletions

View File

@@ -40,6 +40,9 @@ search:
# Split documents into sections that can be individually searched
# Supports 1 - 6, default: 2
heading_level: 2
# Maximum amount of previews to display
# Default: 3
previews: 3
# Maximum amount of words to display before a matched word in the preview
# Default: 5
preview_words_before: 5