[obsidian] vault backup: 2025-10-22 14:03:20[
All checks were successful
Build / build (push) Successful in 7m6s

This commit is contained in:
2025-10-22 14:03:20 -04:00
parent 0277ecf024
commit ac34d7e60b

View File

@@ -114,11 +114,14 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
const headerFont = cfg.theme.typography.header
const bodyFont = cfg.theme.typography.body
const fonts = await getSatoriFonts(headerFont, bodyFont)
for (const [_tree, vfile] of content) {
if (vfile.data.frontmatter?.socialImage !== undefined) continue
yield processOgImage(ctx, vfile.data, fonts, fullOptions)
Promise.all(
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