mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
Update quartz/plugins/emitters/ogImage.tsx
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
This commit is contained in:
parent
616d0ed0a1
commit
aa593a5129
@ -155,7 +155,7 @@ export const CustomOgImages: QuartzEmitterPlugin<Partial<SocialImageOptions>> =
|
|||||||
if (userDefinedOgImagePath) {
|
if (userDefinedOgImagePath) {
|
||||||
userDefinedOgImagePath = isAbsoluteFilePath(userDefinedOgImagePath)
|
userDefinedOgImagePath = isAbsoluteFilePath(userDefinedOgImagePath)
|
||||||
? userDefinedOgImagePath
|
? userDefinedOgImagePath
|
||||||
: `https://${baseUrl}/static/${socialImage}`
|
: `https://${baseUrl}/static/${userDefinedOgImagePath}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const generatedOgImagePath = isRealFile
|
const generatedOgImagePath = isRealFile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user