Skip to content

Commit 6bd0152

Browse files
committed
Update OpenGraph URL to use canonical URL and add Twitter metadata
1 parent 9995ca5 commit 6bd0152

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/BaseHead.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ const { title, description, image = FallbackImage } = Astro.props;
3333

3434
<!-- OpenGraph -->
3535
<meta property="og:type" content="website" />
36-
<meta property="og:url" content={Astro.url} />
36+
<meta property="og:url" content={canonicalURL} />
3737
<meta property="og:title" content={title} />
3838
<meta property="og:description" content={description} />
3939
<meta property="og:image" content={new URL(image.src, Astro.url)} />
40+
41+
<!-- Twitter -->
42+
<meta name="twitter:card" content="summary_large_image" />
43+
<meta name="twitter:title" content={title} />
44+
<meta name="twitter:description" content={description} />
45+
<meta name="twitter:image" content={new URL(image.src, Astro.url)} />

0 commit comments

Comments
 (0)