From 862b0f0d879b8e5034ba78ae6eea056d8ab03925 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, 29 Oct 2025 20:44:45 -0400 Subject: [PATCH] made change to content --- content/NY日記(2025).md | 3 ++- quartz/plugins/emitters/ogImage.tsx | 11 +++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/NY日記(2025).md b/content/NY日記(2025).md index f0046953..a9609495 100644 --- a/content/NY日記(2025).md +++ b/content/NY日記(2025).md @@ -17,4 +17,5 @@ date: 2025-10-14 22:21 - [[NY日記-20251024]] - [[NY日記-20251025]] - [[NY日記-20251026]] -- [[NY日記-20251027]] \ No newline at end of file +- [[NY日記-20251027]] +- [[NY日記-20251028]] \ No newline at end of file diff --git a/quartz/plugins/emitters/ogImage.tsx b/quartz/plugins/emitters/ogImage.tsx index d118607a..af2aa5d4 100644 --- a/quartz/plugins/emitters/ogImage.tsx +++ b/quartz/plugins/emitters/ogImage.tsx @@ -115,13 +115,12 @@ export const CustomOgImages: QuartzEmitterPlugin> = 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) -} - - } ) + content.map(([_tree, vfile]) => { + if (vfile.data.frontmatter?.socialImage !== undefined) { + processOgImage(ctx, vfile.data, fonts, fullOptions) + } + }), ) - }, async *partialEmit(ctx, _content, _resources, changeEvents) { const cfg = ctx.cfg.configuration