This commit is contained in:
@@ -18,3 +18,4 @@ date: 2025-10-14 22:21
|
||||
- [[NY日記-20251025]]
|
||||
- [[NY日記-20251026]]
|
||||
- [[NY日記-20251027]]
|
||||
- [[NY日記-20251028]]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user