diff options
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 8 | ||||
-rw-r--r-- | exampleSite/config.yaml | 9 | ||||
-rw-r--r-- | exampleSite/content/docs/example/search.md | 17 |
3 files changed, 13 insertions, 21 deletions
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 }' diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 8719742..36b3b5d 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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,9 @@ params: # (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 } diff --git a/exampleSite/content/docs/example/search.md b/exampleSite/content/docs/example/search.md deleted file mode 100644 index 3e242df..0000000 --- a/exampleSite/content/docs/example/search.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: 結任了出興自園更市標告之絕 -bookHidden: true ---- - -# 結任了出興自園更市標告之絕 -問希和企一我……開父天營歡母不黨信現人發。 - -加你區然沒一破?感花好千現學稱好?計現生,響時加過法素種際說國……陸國教快這展四冷論機人語力減社,路調好……臉水不國清司的態已及力如未三團身;大力看國叫晚線不式。校精到過,個亞有可放世來年和於後。 - -功細能色,色是任金言!學門他應全品原表便家人大就。 - -牛生美服食方未問始沒害被般不……響具線? - -而技爸技推立出少屋須?男才太西個輕明深應工、原而克說國快我檢為的單調請出消動教處負四無空、三電引,力二約說空表消字代!到人岸傳、著人野中活! - -去一作情離論才,再男反整。設如大點重主理個故……面目定辦我些!的我頭來裡品生有適西管以依越同究民國自情以助受人:要家的受好客童把叫的通,預把工那子電作,根品行消……高華然片內聞員、有是老道世心,皮急結告,商這同給……遠蘭裡:化委長教人再;再的她適認是國有評都的城一識小廣分方提爾現馬多,數曾突為備長竟重深知舉書校母印的兒部竟法由念,學代品道量百著別旅!參還理登你下府意生有公生將題必今的用能從父人見動北死作國! |