Search for sections (configurable via search.heading_level)

Added more search configurations
Display "no results found"
This commit is contained in:
Silvio Giebl
2019-12-29 19:19:00 +01:00
parent 38689d07b1
commit 7f5b1f14f1
5 changed files with 161 additions and 41 deletions

View File

@@ -26,6 +26,11 @@ exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "pac
# Enable or disable the site search
search_enabled: true
search:
heading_level: 2
preview_words_before: 5
preview_words_after: 10
rel_url: false
# Set the search token separator for hyphenated-word search:
search_tokenizer_separator: /[\s/]+/