Skip to content

Commit

Permalink
fix: twitter og maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed Dec 5, 2023
1 parent 45b5ae6 commit 30162c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/blog/post/[post]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ export async function generateMetadata({ params }: PostProps): Promise<Metadata>
const { data } = getPostData(params.post);

return {
title: `${data.title} | Yash Singh's Blog - yashsingh.us`,
title: `${data.title}`,
description: data.subtitle,
authors: { name: 'Yash Singh' },
openGraph: {
title: `${data.title}`,
images: data.image,
},
};
Expand Down
1 change: 1 addition & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function generateMetadata(): Promise<Metadata> {
title: 'Saiansh (Yash) Singh - yashsingh.us',
description: data.description,
openGraph: {
title: 'Saiansh (Yash) Singh - yashsingh.us',
type: 'website',
},
};
Expand Down

1 comment on commit 30162c1

@vercel
Copy link

@vercel vercel bot commented on 30162c1 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.