diff --git a/app/[locale]/opengraph-image.tsx b/app/[locale]/opengraph-image.tsx index 94fea49e8..790136f76 100644 --- a/app/[locale]/opengraph-image.tsx +++ b/app/[locale]/opengraph-image.tsx @@ -10,6 +10,16 @@ export const runtime = 'nodejs'; export default async function Image({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; const t = await getTranslations({ locale, namespace: 'Index.meta' }); + + let title = t('title'); + if (title.startsWith('E-TIB GmbH | ')) { + title = title.substring('E-TIB GmbH | '.length); + } + let description = t('description'); + if (description.length > 160) { + description = description.substring(0, 160) + '...'; + } + const fonts = await getOgFonts(); const bg = getOgBackground(); const logo = getOgLogo();