From da1b6b37fe2ee09359b532f0d2669975b4476c95 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 14 Mar 2025 17:05:26 +0000
Subject: [PATCH] fix(explorer): fix incorrect recursive case for folder rendering
---
quartz/plugins/emitters/tagPage.tsx | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/quartz/plugins/emitters/tagPage.tsx b/quartz/plugins/emitters/tagPage.tsx
index d82a537..41cf091 100644
--- a/quartz/plugins/emitters/tagPage.tsx
+++ b/quartz/plugins/emitters/tagPage.tsx
@@ -71,8 +71,7 @@
return graph
},
- async emit(ctx, content, resources): Promise<FilePath[]> {
- const fps: FilePath[] = []
+ async *emit(ctx, content, resources) {
const allFiles = content.map((c) => c[1].data)
const cfg = ctx.cfg.configuration
@@ -114,8 +113,8 @@
for (const tag of tags) {
const slug = joinSegments("tags", tag) as FullSlug
- const externalResources = pageResources(pathToRoot(slug), resources)
const [tree, file] = tagDescriptions[tag]
+ const externalResources = pageResources(pathToRoot(slug), file.data, resources)
const componentData: QuartzComponentProps = {
ctx,
fileData: file.data,
@@ -127,16 +126,13 @@
}
const content = renderPage(cfg, slug, componentData, opts, externalResources)
- const fp = await write({
+ yield write({
ctx,
content,
slug: file.data.slug!,
ext: ".html",
})
-
- fps.push(fp)
}
- return fps
},
}
}
--
Gitblit v1.10.0