Skip to content

Commit 828928e

Browse files
committed
Absolute og urls
1 parent 6eda3ed commit 828928e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/web/app/blog/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ export function generateMetadata({ params }: { params: { slug: string } }) {
8383
title: page.data.title,
8484
type: "article",
8585
description: page.data.description,
86-
images: `/blog/${params.slug}.png`,
86+
images: `https://codehike.org/blog/${params.slug}.png`,
8787
},
8888
twitter: {
8989
card: "summary_large_image",
9090
site: "@codehike_",
9191
creator: "@pomber",
9292
title: page.data.title,
9393
description: page.data.description,
94-
images: `/blog/${params.slug}.png`,
94+
images: `https://codehike.org/blog/${params.slug}.png`,
9595
},
9696
} satisfies Metadata
9797
}

apps/web/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ export const metadata: Metadata = {
3232
metadataBase: new URL("https://codehike.org"),
3333
openGraph: {
3434
title: "Code Hike",
35-
images: `/codehike.png`,
35+
images: `https://codehike.org/codehike.png`,
3636
siteName: "Code Hike",
3737
},
3838
twitter: {
3939
card: "summary_large_image",
4040
site: "@codehike_",
4141
creator: "@pomber",
42-
images: `/codehike.png`,
42+
images: `https://codehike.org/codehike.png`,
4343
},
4444
alternates: {
4545
types: {

0 commit comments

Comments
 (0)