fix: add canonical URL for blog posts
This commit is contained in:
parent
7866a5c68f
commit
018bbd5592
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ export async function generateMetadata(props: {
|
||||||
return {
|
return {
|
||||||
title: `${data.title} - SVR.JS`,
|
title: `${data.title} - SVR.JS`,
|
||||||
description: data.smallDescription,
|
description: data.smallDescription,
|
||||||
|
alternates: {
|
||||||
|
canonical: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/blog/${data.currentSlug}`
|
||||||
|
},
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: `${data.title} - SVR.JS`,
|
title: `${data.title} - SVR.JS`,
|
||||||
description: data.smallDescription,
|
description: data.smallDescription,
|
||||||
|
|
Loading…
Reference in a new issue