From 8fd75ffbfda30edd5a134a1fbf9b81ac3cebb2ff Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Jul 2023 00:42:00 +0000
Subject: [PATCH] support attachments folder
---
quartz/processors/emit.ts | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/quartz/processors/emit.ts b/quartz/processors/emit.ts
index 004bb18..ea7fda9 100644
--- a/quartz/processors/emit.ts
+++ b/quartz/processors/emit.ts
@@ -84,12 +84,8 @@
}
}
-export async function emitContent(
- ctx: BuildCtx,
- content: ProcessedContent[],
-) {
- const { argv, cfg }= ctx
- const contentFolder = argv.directory
+export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) {
+ const { argv, cfg } = ctx
const perf = new PerfTimer()
const log = new QuartzLogger(ctx.argv.verbose)
@@ -125,12 +121,7 @@
// emitter plugins
for (const emitter of cfg.plugins.emitters) {
try {
- const emitted = await emitter.emit(
- ctx,
- content,
- staticResources,
- emit,
- )
+ const emitted = await emitter.emit(ctx, content, staticResources, emit)
emittedFiles += emitted.length
if (ctx.argv.verbose) {
--
Gitblit v1.10.0