made change to content
All checks were successful
Build / build (push) Successful in 5m41s

This commit is contained in:
2025-10-29 20:44:45 -04:00
parent ada701809b
commit 862b0f0d87
2 changed files with 7 additions and 7 deletions

View File

@@ -17,4 +17,5 @@ date: 2025-10-14 22:21
- [[NY日記-20251024]] - [[NY日記-20251024]]
- [[NY日記-20251025]] - [[NY日記-20251025]]
- [[NY日記-20251026]] - [[NY日記-20251026]]
- [[NY日記-20251027]] - [[NY日記-20251027]]
- [[NY日記-20251028]]

View File

@@ -115,13 +115,12 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
const bodyFont = cfg.theme.typography.body const bodyFont = cfg.theme.typography.body
const fonts = await getSatoriFonts(headerFont, bodyFont) const fonts = await getSatoriFonts(headerFont, bodyFont)
Promise.all( Promise.all(
content.map(([_tree,vfile])=>{ content.map(([_tree, vfile]) => {
if (vfile.data.frontmatter?.socialImage !== undefined){processOgImage(ctx, vfile.data, fonts, fullOptions) if (vfile.data.frontmatter?.socialImage !== undefined) {
} processOgImage(ctx, vfile.data, fonts, fullOptions)
}
} ) }),
) )
}, },
async *partialEmit(ctx, _content, _resources, changeEvents) { async *partialEmit(ctx, _content, _resources, changeEvents) {
const cfg = ctx.cfg.configuration const cfg = ctx.cfg.configuration