From ac34d7e60b5623f2264823f03167d9b585c4270f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=BE=E6=B5=A6=20=E7=9F=A5=E4=B9=9F=20Matsuura=20Tomoy?= =?UTF-8?q?a?= Date: Wed, 22 Oct 2025 14:03:20 -0400 Subject: [PATCH] [obsidian] vault backup: 2025-10-22 14:03:20[ --- quartz/plugins/emitters/ogImage.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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