fixed wrong logics

This commit is contained in:
松浦 知也 Matsuura Tomoya 2025-11-01 15:21:33 -04:00
parent 2a64a3103d
commit ef25f903ca

View File

@ -125,7 +125,7 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
content content
.filter( .filter(
([_tree, vfile]) => ([_tree, vfile]) =>
vfile.data.frontmatter?.socialImage !== undefined && vfile.data.frontmatter?.socialImage === undefined &&
vfile.data.filePath !== undefined, vfile.data.filePath !== undefined,
) )
.map(([_tree, vfile]) => processOgImage(ctx, vfile.data, fonts, fullOptions)), .map(([_tree, vfile]) => processOgImage(ctx, vfile.data, fonts, fullOptions)),