mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
fixed wrong logics
This commit is contained in:
parent
2a64a3103d
commit
ef25f903ca
@ -125,7 +125,7 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
|
||||
content
|
||||
.filter(
|
||||
([_tree, vfile]) =>
|
||||
vfile.data.frontmatter?.socialImage !== undefined &&
|
||||
vfile.data.frontmatter?.socialImage === undefined &&
|
||||
vfile.data.filePath !== undefined,
|
||||
)
|
||||
.map(([_tree, vfile]) => processOgImage(ctx, vfile.data, fonts, fullOptions)),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user