From 0babbdf7809a6c779c2548b1d1b50ef28d994cf9 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 13 Mar 2025 20:57:00 +0000
Subject: [PATCH] fix(contentPage): dont emit folders
---
quartz/plugins/emitters/contentPage.tsx | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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 @@
containsIndex = true
}
+ if (file.data.slug?.endsWith("/index")) {
+ continue
+ }
+
const externalResources = pageResources(pathToRoot(slug), file.data, resources)
const componentData: QuartzComponentProps = {
ctx,
--
Gitblit v1.10.0