fix(og): Remove redundant description on root OG image
This commit is contained in:
@@ -11,11 +11,6 @@ export default async function Image({ params }: { params: Promise<{ locale: stri
|
|||||||
const { locale } = await params;
|
const { locale } = await params;
|
||||||
const t = await getTranslations({ locale, namespace: 'Index.meta' });
|
const t = await getTranslations({ locale, namespace: 'Index.meta' });
|
||||||
|
|
||||||
let pageTitle = t('title');
|
|
||||||
if (pageTitle.startsWith('E-TIB GmbH | ')) {
|
|
||||||
pageTitle = pageTitle.substring('E-TIB GmbH | '.length);
|
|
||||||
}
|
|
||||||
|
|
||||||
const fonts = await getOgFonts();
|
const fonts = await getOgFonts();
|
||||||
const bg = getOgBackground();
|
const bg = getOgBackground();
|
||||||
const logo = getOgLogo();
|
const logo = getOgLogo();
|
||||||
@@ -23,7 +18,6 @@ export default async function Image({ params }: { params: Promise<{ locale: stri
|
|||||||
return new ImageResponse(
|
return new ImageResponse(
|
||||||
<OGImageTemplate
|
<OGImageTemplate
|
||||||
title="Die Experten für Kabelnetzbau"
|
title="Die Experten für Kabelnetzbau"
|
||||||
description={pageTitle}
|
|
||||||
label="Kabelnetzbau & Infrastruktur"
|
label="Kabelnetzbau & Infrastruktur"
|
||||||
image={bg}
|
image={bg}
|
||||||
logo={logo}
|
logo={logo}
|
||||||
|
|||||||
Reference in New Issue
Block a user