[obsidian] vault backup: 2025-10-22 14:03:20[

This commit is contained in:
2025-10-22 14:03:20 -04:00
parent 0c1f2011a1
commit d6e863ba7b

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)
Promise.all(
content.map(([_tree,vfile])=>{
if (vfile.data.frontmatter?.socialImage !== undefined){processOgImage(ctx, vfile.data, fonts, fullOptions)
}
} )
)
for (const [_tree, vfile] of content) {
if (vfile.data.frontmatter?.socialImage !== undefined) continue
yield processOgImage(ctx, vfile.data, fonts, fullOptions)
}
},
async *partialEmit(ctx, _content, _resources, changeEvents) {
const cfg = ctx.cfg.configuration