feat: don't prepend baseurl in the og:image when the locally stored first image in the article is used
This commit is contained in:
parent
b814569bc6
commit
510669b34c
2 changed files with 3 additions and 11 deletions
|
@ -33,7 +33,7 @@ let matchedImage_src;
|
|||
if (matchedImage && !customFeaturedImage) {
|
||||
matchedImage_src = await getImage({src: featuredImages[matchedImage], format: 'webp'}) || null;
|
||||
}
|
||||
const firstImageURL = await ExtractFirstImage(Content,Astro.url.origin)
|
||||
const firstImageURL = await ExtractFirstImage(Content)
|
||||
|
||||
const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || `/post/${slug}/featured.png` || '';
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue