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

@@ -115,13 +115,12 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
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