mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-11-04 10:22:44 +01:00 
			
		
		
		
	docs: add configurable limit to search results (#1282)
* docs: limit search results Signed-off-by: Navendu Pottekkat <navendu@apache.org> * Update with refer link to fuse docs --------- Signed-off-by: Navendu Pottekkat <navendu@apache.org> Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7e5d17f08a
						
					
				
				
					commit
					fa57a841c3
				
			@@ -215,6 +215,7 @@ params:
 | 
			
		||||
    distance: 1000
 | 
			
		||||
    threshold: 0.4
 | 
			
		||||
    minMatchCharLength: 0
 | 
			
		||||
    # limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
 | 
			
		||||
    keys: ["title", "permalink", "summary", "content"]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -251,6 +251,7 @@ params:
 | 
			
		||||
    distance: 1000
 | 
			
		||||
    threshold: 0.4
 | 
			
		||||
    minMatchCharLength: 0
 | 
			
		||||
    limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
 | 
			
		||||
    keys: ["title", "permalink", "summary", "content"]
 | 
			
		||||
menu:
 | 
			
		||||
  main:
 | 
			
		||||
 
 | 
			
		||||
@@ -136,6 +136,7 @@ fuseOpts:
 | 
			
		||||
  distance: 1000
 | 
			
		||||
  threshold: 0.4
 | 
			
		||||
  minMatchCharLength: 0
 | 
			
		||||
  limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
 | 
			
		||||
  keys: ["title", "permalink", "summary", "content"] ##  can be less but not more than shown in list
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user