From a72b1a422485d4f2258e58c1f76f933cb24cf455 Mon Sep 17 00:00:00 2001
From: Felix Nie <hongtuo.nie@u.nus.edu>
Date: Sun, 16 Mar 2025 19:08:45 +0000
Subject: [PATCH] fix(explorer): vertically center the Explorer toggle under mobile view (#1847)
---
quartz/plugins/emitters/folderPage.tsx | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/quartz/plugins/emitters/folderPage.tsx b/quartz/plugins/emitters/folderPage.tsx
index bafaec9..1c81207 100644
--- a/quartz/plugins/emitters/folderPage.tsx
+++ b/quartz/plugins/emitters/folderPage.tsx
@@ -69,8 +69,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
@@ -119,16 +118,13 @@
}
const content = renderPage(cfg, slug, componentData, opts, externalResources)
- const fp = await write({
+ yield write({
ctx,
content,
slug,
ext: ".html",
})
-
- fps.push(fp)
}
- return fps
},
}
}
--
Gitblit v1.10.0