perf: compute mapping of folder name to file data for faster breadcrumbs
This commit is contained in:
		
							parent
							
								
									d1551872ff
								
							
						
					
					
						commit
						43d638a6de
					
				
					 2 changed files with 26 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -16,10 +16,10 @@ For example, here's what the default configuration looks like:
 | 
			
		|||
 | 
			
		||||
```typescript title="quartz.layout.ts"
 | 
			
		||||
Component.Breadcrumbs({
 | 
			
		||||
  spacerSymbol: ">", // symbol between crumbs
 | 
			
		||||
  spacerSymbol: "❯", // symbol between crumbs
 | 
			
		||||
  rootName: "Home", // name of first/root element
 | 
			
		||||
  resolveFrontmatterTitle: false, // wether to resolve folder names through frontmatter titles (more computationally expensive)
 | 
			
		||||
  hideOnRoot: true, // wether to hide breadcrumbs on root `index.md` page
 | 
			
		||||
  resolveFrontmatterTitle: true, // whether to resolve folder names through frontmatter titles
 | 
			
		||||
  hideOnRoot: true, // whether to hide breadcrumbs on root `index.md` page
 | 
			
		||||
})
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue