From a5788d71fa7ac1cd6e5ed9a98f95f6ca1bddcbb4 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 27 Oct 2019 11:58:58 +0100 Subject: #80, Add search index configuration --- exampleSite/config.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 32ab022..779c74f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,10 +1,9 @@ -# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/example +# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/ baseURL = 'https://example.com/' title = 'Hugo Book' theme = 'hugo-book' disableKinds = ['taxonomy', 'taxonomyTerm'] -# themesDir = '../..' # Book configuration disablePathToLower = true @@ -49,3 +48,8 @@ pygmentsCodeFences = true # (Optional, default true) Enables search function with lunr.js, # Index is built on fly, therefore it might slowdown your website. BookSearch = true + + # (Optional, default none) Search config for flexsearch index. + # Read documentation at https://github.com/nextapps-de/flexsearch#usage. By default 'balance' preset is used. + # This option allows to set specific configs for languages support. Must be valid JavaScript object. + BookSearchConfig = '{ cache: true }' -- cgit v1.2.3