[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 headerFont = cfg.theme.typography.header
|
||||||
const bodyFont = cfg.theme.typography.body
|
const bodyFont = cfg.theme.typography.body
|
||||||
const fonts = await getSatoriFonts(headerFont, bodyFont)
|
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) {
|
async *partialEmit(ctx, _content, _resources, changeEvents) {
|
||||||
const cfg = ctx.cfg.configuration
|
const cfg = ctx.cfg.configuration
|
||||||
|
Reference in New Issue
Block a user