mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
Set default og image even when empty string is specify
This commit is contained in:
@@ -17,7 +17,10 @@ const {
|
|||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
|
|
||||||
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
||||||
const socialImageURL = new URL(ogImage, Astro.url.origin);
|
const socialImageURL = new URL(
|
||||||
|
ogImage ? ogImage : SITE.ogImage,
|
||||||
|
Astro.url.origin
|
||||||
|
);
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
Reference in New Issue
Block a user