forked from cadence/breezewiki
		
	New configuration: feature_search_suggestions
Default true. Set this to false to disable search suggestions for the whole instance.
This commit is contained in:
		
							parent
							
								
									07db44e732
								
							
						
					
					
						commit
						e709b3cea5
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -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"))) | ||||||
|  |  | ||||||
|  | @ -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") | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue