fix(contentPage): dont emit folders
This commit is contained in:
parent
1efe2e20a4
commit
0babbdf780
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ export const ContentPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOp
|
|||
containsIndex = true
|
||||
}
|
||||
|
||||
if (file.data.slug?.endsWith("/index")) {
|
||||
continue
|
||||
}
|
||||
|
||||
const externalResources = pageResources(pathToRoot(slug), file.data, resources)
|
||||
const componentData: QuartzComponentProps = {
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Reference in a new issue