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/cname.ts | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/quartz/plugins/emitters/cname.ts b/quartz/plugins/emitters/cname.ts
index cbed2a8..897d851 100644
--- a/quartz/plugins/emitters/cname.ts
+++ b/quartz/plugins/emitters/cname.ts
@@ -11,13 +11,10 @@
export const CNAME: QuartzEmitterPlugin = () => ({
name: "CNAME",
- getQuartzComponents() {
- return []
- },
async getDependencyGraph(_ctx, _content, _resources) {
return new DepGraph<FilePath>()
},
- async emit({ argv, cfg }, _content, _resources): Promise<FilePath[]> {
+ async emit({ argv, cfg }, _content, _resources) {
if (!cfg.configuration.baseUrl) {
console.warn(chalk.yellow("CNAME emitter requires `baseUrl` to be set in your configuration"))
return []
@@ -27,7 +24,7 @@
if (!content) {
return []
}
- fs.writeFileSync(path, content)
+ await fs.promises.writeFile(path, content)
return [path] as FilePath[]
},
})
--
Gitblit v1.10.0