titles
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-01-27 00:07:00 +01:00
parent b8fdbfb10b
commit a805c7b8de
6 changed files with 53 additions and 23 deletions

View File

@@ -15,9 +15,11 @@ interface TeamPageProps {
export async function generateMetadata({ params: { locale } }: TeamPageProps): Promise<Metadata> {
const t = await getTranslations({ locale, namespace: 'Team' });
const title = t('meta.title') || t('hero.subtitle');
const description = t('meta.description') || t('hero.title');
return {
title: t('hero.subtitle'),
description: t('hero.title'),
title,
description,
alternates: {
canonical: `/${locale}/team`,
languages: {
@@ -27,14 +29,14 @@ export async function generateMetadata({ params: { locale } }: TeamPageProps): P
},
},
openGraph: {
title: `${t('hero.subtitle')} | KLZ Cables`,
description: t('hero.title'),
title: `${title} | KLZ Cables`,
description,
url: `https://klz-cables.com/${locale}/team`,
},
twitter: {
card: 'summary_large_image',
title: `${t('hero.subtitle')} | KLZ Cables`,
description: t('hero.title'),
title: `${title} | KLZ Cables`,
description,
},
};
}