New configuration: feature_search_suggestions

Default true. Set this to false to disable search suggestions for the
whole instance.
This commit is contained in:
Cadence Ember 2022-10-23 00:35:34 +13:00
parent 07db44e732
commit e709b3cea5
Signed by: cadence
GPG key ID: BC1C2C61CF521B17
2 changed files with 4 additions and 1 deletions

View file

@ -99,7 +99,9 @@
(script "const BWData = "
,(jsexpr->string (hasheq 'wikiname wikiname
'strict_proxy (config-true? 'strict_proxy))))
(script (@ (type "module") (src "/static/search-suggestions.js"))))
,(if (config-true? 'feature_search_suggestions)
'(script (@ (type "module") (src "/static/search-suggestions.js")))
""))
(body (@ (class ,body-class))
(div (@ (class "main-container"))
(div (@ (class "fandom-community-header__background tileHorizontally header")))

View file

@ -34,6 +34,7 @@
'((application_name . "BreezeWiki")
(canonical_origin . "")
(debug . "false")
(feature_search_suggestions . "true")
(instance_is_official . "false") ; please don't turn this on, or you will make me very upset
(log_outgoing . "true")
(port . "10416")