Make search multilingual (#305)
* Make search multilingual * Added Support for custom country flags * Add search.md for more language + fix search behavior Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
16f64aa4c2
commit
ac28e9824e
34 changed files with 1315 additions and 17 deletions
|
@ -31,7 +31,7 @@ if(searchQuery){
|
|||
|
||||
|
||||
function executeSearch(searchQuery){
|
||||
$.getJSON( "/index.json", function( data ) {
|
||||
$.getJSON( window.location.href.split("/search/")[0] + "/index.json", function( data ) {
|
||||
var pages = data;
|
||||
var fuse = new Fuse(pages, fuseOptions);
|
||||
var result = fuse.search(searchQuery);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue