Skip to content

Commit 42385fc

Browse files
committed
Post Preview fixing 2
1 parent 9d92c50 commit 42385fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export const metadata: Metadata = {
1414
openGraph: {
1515
type: "website",
1616
siteName: "SLIIT SESC Blog",
17+
url: "https://blog.sliitsesc.org",
1718
images: [
1819
{
19-
url: HOME_OG_IMAGE_URL ,
20+
url: HOME_OG_IMAGE_URL,
2021
width: 1200,
2122
height: 630,
22-
2323
},
2424
],
2525
},

src/app/posts/[slug]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,18 @@ export async function generateMetadata(props: Params): Promise<Metadata> {
5353

5454
const title = `${post.title} | Official Blog of SLIIT SESC`;
5555
const description = post.excerpt;
56+
const url = `https://blog.sliitsesc.org/posts/${post.slug}`;
5657

5758
return {
5859
title,
5960
description,
6061
openGraph: {
6162
title,
6263
description,
64+
url,
6365
images: [
6466
{
65-
url:post.ogImage.url,
67+
url: post.ogImage.url,
6668
width: 1200,
6769
height: 630,
6870
alt: post.title,

0 commit comments

Comments
 (0)