This commit is contained in:
2026-01-19 19:29:44 +01:00
parent 2feb73b982
commit 6797303628
15 changed files with 406 additions and 18 deletions

View File

@@ -13,15 +13,20 @@ export async function generateMetadata({params: {locale}}: {params: {locale: str
return {
title: {
default: t('title'),
template: `%s | ${t('title')}`
template: `%s | KLZ Cables`
},
description: t('description'),
metadataBase: new URL('https://klz-cables.com'),
icons: {
icon: '/favicon.ico',
apple: '/apple-touch-icon.png',
},
alternates: {
canonical: `/${locale}`,
languages: {
'de-DE': '/de',
'en-US': '/en',
'de': '/de',
'en': '/en',
'x-default': '/en',
},
},
openGraph: {
@@ -31,11 +36,20 @@ export async function generateMetadata({params: {locale}}: {params: {locale: str
siteName: 'KLZ Cables',
title: t('title'),
description: t('description'),
images: [
{
url: '/uploads/2025/02/og-2.webp',
width: 1200,
height: 630,
alt: 'KLZ Cables',
},
],
},
twitter: {
card: 'summary_large_image',
title: t('title'),
description: t('description'),
images: ['/uploads/2025/02/og-2.webp'],
},
robots: {
index: true,