From 0babbdf7809a6c779c2548b1d1b50ef28d994cf9 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Thu, 13 Mar 2025 13:57:00 -0700 Subject: [PATCH] fix(contentPage): dont emit folders --- quartz/plugins/emitters/contentPage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quartz/plugins/emitters/contentPage.tsx b/quartz/plugins/emitters/contentPage.tsx index 8eb3e68..f833930 100644 --- a/quartz/plugins/emitters/contentPage.tsx +++ b/quartz/plugins/emitters/contentPage.tsx @@ -105,6 +105,10 @@ export const ContentPage: QuartzEmitterPlugin> = (userOp containsIndex = true } + if (file.data.slug?.endsWith("/index")) { + continue + } + const externalResources = pageResources(pathToRoot(slug), file.data, resources) const componentData: QuartzComponentProps = { ctx,