wip
This commit is contained in:
@@ -9,8 +9,43 @@ export async function generateMetadata({params: {locale}}: {params: {locale: str
|
||||
const t = await getTranslations({locale, namespace: 'Index.meta'});
|
||||
|
||||
return {
|
||||
title: t('title'),
|
||||
description: t('description')
|
||||
title: {
|
||||
default: t('title'),
|
||||
template: `%s | ${t('title')}`
|
||||
},
|
||||
description: t('description'),
|
||||
metadataBase: new URL('https://klz-cables.com'),
|
||||
alternates: {
|
||||
canonical: `/${locale}`,
|
||||
languages: {
|
||||
'de-DE': '/de',
|
||||
'en-US': '/en',
|
||||
},
|
||||
},
|
||||
openGraph: {
|
||||
type: 'website',
|
||||
locale: locale === 'de' ? 'de_DE' : 'en_US',
|
||||
url: `https://klz-cables.com/${locale}`,
|
||||
siteName: 'KLZ Cables',
|
||||
title: t('title'),
|
||||
description: t('description'),
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: t('title'),
|
||||
description: t('description'),
|
||||
},
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
googleBot: {
|
||||
index: true,
|
||||
follow: true,
|
||||
'max-video-preview': -1,
|
||||
'max-image-preview': 'large',
|
||||
'max-snippet': -1,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user