fix: 404 page styling for nested pages (closes #458)
This commit is contained in:
		
							parent
							
								
									71d81bde1d
								
							
						
					
					
						commit
						60a3c54339
					
				
					 7 changed files with 31 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -123,7 +123,10 @@ export function slugTag(tag: string) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
export function joinSegments(...args: string[]): string {
 | 
			
		||||
  return args.filter((segment) => segment !== "").join("/")
 | 
			
		||||
  return args
 | 
			
		||||
    .filter((segment) => segment !== "")
 | 
			
		||||
    .join("/")
 | 
			
		||||
    .replace(/\/\/+/g, "/")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function getAllSegmentPrefixes(tags: string): string[] {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue