[obsidian] vault backup: 2025-10-22 14:03:20[
All checks were successful
Build / build (push) Successful in 7m6s
All checks were successful
Build / build (push) Successful in 7m6s
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user