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 = " (script "const BWData = "
,(jsexpr->string (hasheq 'wikiname wikiname ,(jsexpr->string (hasheq 'wikiname wikiname
'strict_proxy (config-true? 'strict_proxy)))) '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)) (body (@ (class ,body-class))
(div (@ (class "main-container")) (div (@ (class "main-container"))
(div (@ (class "fandom-community-header__background tileHorizontally header"))) (div (@ (class "fandom-community-header__background tileHorizontally header")))

View file

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