Skip to content

Commit 50d13dd

Browse files
committed
refactor: descriptions meta
1 parent 2fe8508 commit 50d13dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/[lang]/[[...mdxPath]]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export async function generateMetadata(props: PageProps): Promise<Metadata | nul
3131
...metadata,
3232
openGraph: {
3333
...metadata.openGraph,
34-
images: [ogImage]
34+
images: [ogImage],
35+
url: `${BASE_URL}${canonicalPath}`
3536
},
3637
alternates: {
3738
canonical: `${BASE_URL}${canonicalPath}`

app/metadata.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const metadataSEO: Metadata = {
77
template: '%s | UX Patterns for Devs'
88
},
99
description:
10-
'UX Patterns for Devs is a collection of UX Patterns for Devs to use in their projects.',
10+
'UX Patterns for Developers is a collection of UX Patterns for Devs to use in their projects.',
1111
robots: {
1212
index: true,
1313
follow: true,
@@ -25,7 +25,8 @@ export const metadataSEO: Metadata = {
2525
type: "website",
2626
locale: "en_US",
2727
title: "UX Patterns for Devs",
28-
description: "UX Patterns for Devs is a collection of UX Patterns for Devs to use in their projects.",
28+
description: "UX Patterns for Developers is a collection of UX Patterns for Devs to use in their projects.",
29+
url: BASE_URL,
2930
images: [{
3031
url: '/og/opengraph-image.png',
3132
width: 1200,

0 commit comments

Comments
 (0)