fix: dont show index page for folder in its own listing
This commit is contained in:
		
							parent
							
								
									71471117c5
								
							
						
					
					
						commit
						ca17af4ae2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,7 @@ function FolderContent(props: QuartzComponentProps) {
 | 
			
		|||
  const { tree, fileData, allFiles } = props
 | 
			
		||||
  const folderSlug = _stripSlashes(simplifySlug(fileData.slug!))
 | 
			
		||||
  const allPagesInFolder = allFiles.filter((file) => {
 | 
			
		||||
    const fileSlug = simplifySlug(file.slug!)
 | 
			
		||||
    const fileSlug = _stripSlashes(simplifySlug(file.slug!))
 | 
			
		||||
    const prefixed = fileSlug.startsWith(folderSlug) && fileSlug !== folderSlug
 | 
			
		||||
    const folderParts = folderSlug.split(path.posix.sep)
 | 
			
		||||
    const fileParts = fileSlug.split(path.posix.sep)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue