This commit is contained in:
@@ -17,4 +17,5 @@ date: 2025-10-14 22:21
|
|||||||
- [[NY日記-20251024]]
|
- [[NY日記-20251024]]
|
||||||
- [[NY日記-20251025]]
|
- [[NY日記-20251025]]
|
||||||
- [[NY日記-20251026]]
|
- [[NY日記-20251026]]
|
||||||
- [[NY日記-20251027]]
|
- [[NY日記-20251027]]
|
||||||
|
- [[NY日記-20251028]]
|
||||||
@@ -115,13 +115,12 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
|
|||||||
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(
|
Promise.all(
|
||||||
content.map(([_tree,vfile])=>{
|
content.map(([_tree, vfile]) => {
|
||||||
if (vfile.data.frontmatter?.socialImage !== undefined){processOgImage(ctx, vfile.data, fonts, fullOptions)
|
if (vfile.data.frontmatter?.socialImage !== undefined) {
|
||||||
}
|
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