mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
fix(contentPage): dont emit folders
This commit is contained in:
parent
1efe2e20a4
commit
0babbdf780
@ -105,6 +105,10 @@ export const ContentPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOp
|
|||||||
containsIndex = true
|
containsIndex = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file.data.slug?.endsWith("/index")) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
const externalResources = pageResources(pathToRoot(slug), file.data, resources)
|
const externalResources = pageResources(pathToRoot(slug), file.data, resources)
|
||||||
const componentData: QuartzComponentProps = {
|
const componentData: QuartzComponentProps = {
|
||||||
ctx,
|
ctx,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user