This commit is contained in:
2026-01-19 19:31:53 +01:00
parent 6797303628
commit 4abcc3fdf5
9 changed files with 1 additions and 86 deletions

View File

@@ -16,8 +16,6 @@ export async function generateMetadata({ params: { locale, slug } }: BlogPostPro
if (!post) return {};
const description = post.frontmatter.excerpt || '';
const imageUrl = post.frontmatter.featuredImage || '/uploads/2025/02/og-2.webp';
return {
title: post.frontmatter.title,
description: description,
@@ -36,20 +34,11 @@ export async function generateMetadata({ params: { locale, slug } }: BlogPostPro
publishedTime: post.frontmatter.date,
authors: ['KLZ Cables'],
url: `https://klz-cables.com/${locale}/blog/${slug}`,
images: [
{
url: imageUrl,
width: 1200,
height: 630,
alt: post.frontmatter.title,
},
],
},
twitter: {
card: 'summary_large_image',
title: `${post.frontmatter.title} | KLZ Cables`,
description: description,
images: [imageUrl],
},
};
}