diff --git a/quartz/plugins/emitters/ogImage.tsx b/quartz/plugins/emitters/ogImage.tsx index 813d9348..d118607a 100644 --- a/quartz/plugins/emitters/ogImage.tsx +++ b/quartz/plugins/emitters/ogImage.tsx @@ -114,11 +114,14 @@ export const CustomOgImages: QuartzEmitterPlugin> = const headerFont = cfg.theme.typography.header const bodyFont = cfg.theme.typography.body const fonts = await getSatoriFonts(headerFont, bodyFont) + Promise.all( + content.map(([_tree,vfile])=>{ + if (vfile.data.frontmatter?.socialImage !== undefined){processOgImage(ctx, vfile.data, fonts, fullOptions) +} + + } ) + ) - for (const [_tree, vfile] of content) { - if (vfile.data.frontmatter?.socialImage !== undefined) continue - yield processOgImage(ctx, vfile.data, fonts, fullOptions) - } }, async *partialEmit(ctx, _content, _resources, changeEvents) { const cfg = ctx.cfg.configuration