Skip to content

Commit ff977a8

Browse files
committed
feat: update openGraph metadata to include article URL and type
1 parent 98ae22e commit ff977a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/app/[username]/[articleHandle]

src/app/[username]/[articleHandle]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export async function generateMetadata(
5353
20
5454
),
5555
openGraph: {
56+
url: `https://www.techdiary.dev/@${article.user?.username}/${article.handle}`,
57+
type: "article",
5658
images: [
5759
{
5860
url: getFileUrl(article.cover_image),

0 commit comments

Comments
 (0)