This commit is contained in:
Jacky Zhao 2023-07-23 17:09:12 -07:00
parent 9e83af04a7
commit 55a1fb8c41
6 changed files with 9 additions and 25 deletions
quartz/processors

View file

@ -84,11 +84,8 @@ function addGlobalPageResources(
}
}
export async function emitContent(
ctx: BuildCtx,
content: ProcessedContent[],
) {
const { argv, cfg }= ctx
export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) {
const { argv, cfg } = ctx
const contentFolder = argv.directory
const perf = new PerfTimer()
const log = new QuartzLogger(ctx.argv.verbose)
@ -125,12 +122,7 @@ export async function emitContent(
// 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) {