mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	tweak fuse opts
-rm default opts, - add ignoreLocation (to search everywhere not just 1st 60 chars) - ref https://fusejs.io/concepts/scoring-theory.html#scoring-theory
This commit is contained in:
		| @@ -14,12 +14,9 @@ function loadSearch() { | ||||
|                 if (data) { | ||||
|                     // fuse.js options; check fuse.js website for details | ||||
|                     var options = { | ||||
|                         isCaseSensitive: false, | ||||
|                         shouldSort: true, | ||||
|                         location: 0, | ||||
|                         distance: 100, | ||||
|                         threshold: 0.4, | ||||
|                         minMatchCharLength: 0, | ||||
|                         ignoreLocation: true, | ||||
|                         keys: [ | ||||
|                             'title', | ||||
|                             'permalink', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange