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

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

View File

@@ -116,12 +116,11 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
const fonts = await getSatoriFonts(headerFont, bodyFont)
Promise.all(
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) {
const cfg = ctx.cfg.configuration