fix(og): Add missing title and description variables

This commit is contained in:
2026-06-22 13:05:33 +02:00
parent e8b8493740
commit dc5489706d

View File

@@ -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();