From 4abcc3fdf5d7f8108f69525b587379376a7a6829 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 19 Jan 2026 19:31:53 +0100 Subject: [PATCH] wip --- app/[locale]/[slug]/page.tsx | 9 --------- app/[locale]/blog/[slug]/page.tsx | 11 ----------- app/[locale]/blog/page.tsx | 9 --------- app/[locale]/contact/page.tsx | 9 --------- app/[locale]/layout.tsx | 9 --------- app/[locale]/products/[...slug]/page.tsx | 20 -------------------- app/[locale]/products/page.tsx | 9 --------- app/[locale]/team/page.tsx | 9 --------- tsconfig.tsbuildinfo | 2 +- 9 files changed, 1 insertion(+), 86 deletions(-) diff --git a/app/[locale]/[slug]/page.tsx b/app/[locale]/[slug]/page.tsx index e3a66a99..de43b8e2 100644 --- a/app/[locale]/[slug]/page.tsx +++ b/app/[locale]/[slug]/page.tsx @@ -32,20 +32,11 @@ export async function generateMetadata({ params: { locale, slug } }: PageProps): title: `${pageData.frontmatter.title} | KLZ Cables`, description: pageData.frontmatter.excerpt || '', url: `https://klz-cables.com/${locale}/${slug}`, - images: [ - { - url: '/uploads/2025/02/og-2.webp', - width: 1200, - height: 630, - alt: pageData.frontmatter.title, - }, - ], }, twitter: { card: 'summary_large_image', title: `${pageData.frontmatter.title} | KLZ Cables`, description: pageData.frontmatter.excerpt || '', - images: ['/uploads/2025/02/og-2.webp'], }, }; } diff --git a/app/[locale]/blog/[slug]/page.tsx b/app/[locale]/blog/[slug]/page.tsx index 71caded0..0d24b00e 100644 --- a/app/[locale]/blog/[slug]/page.tsx +++ b/app/[locale]/blog/[slug]/page.tsx @@ -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], }, }; } diff --git a/app/[locale]/blog/page.tsx b/app/[locale]/blog/page.tsx index 26ff77b8..e6053551 100644 --- a/app/[locale]/blog/page.tsx +++ b/app/[locale]/blog/page.tsx @@ -27,20 +27,11 @@ export async function generateMetadata({ params: { locale } }: BlogIndexProps) { title: `${t('title')} | KLZ Cables`, description: t('description'), url: `https://klz-cables.com/${locale}/blog`, - images: [ - { - url: '/uploads/2025/02/og-2.webp', - width: 1200, - height: 630, - alt: t('title'), - }, - ], }, twitter: { card: 'summary_large_image', title: `${t('title')} | KLZ Cables`, description: t('description'), - images: ['/uploads/2025/02/og-2.webp'], }, }; } diff --git a/app/[locale]/contact/page.tsx b/app/[locale]/contact/page.tsx index 15ada460..896e3931 100644 --- a/app/[locale]/contact/page.tsx +++ b/app/[locale]/contact/page.tsx @@ -26,20 +26,11 @@ export async function generateMetadata({ params: { locale } }: ContactPageProps) title: `${t('title')} | KLZ Cables`, description: t('subtitle'), url: `https://klz-cables.com/${locale}/contact`, - images: [ - { - url: '/uploads/2025/02/og-2.webp', - width: 1200, - height: 630, - alt: t('title'), - }, - ], }, twitter: { card: 'summary_large_image', title: `${t('title')} | KLZ Cables`, description: t('subtitle'), - images: ['/uploads/2025/02/og-2.webp'], }, }; } diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 9df084bc..ad83550f 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -36,20 +36,11 @@ export async function generateMetadata({params: {locale}}: {params: {locale: str siteName: 'KLZ Cables', title: t('title'), description: t('description'), - images: [ - { - url: '/uploads/2025/02/og-2.webp', - width: 1200, - height: 630, - alt: 'KLZ Cables', - }, - ], }, twitter: { card: 'summary_large_image', title: t('title'), description: t('description'), - images: ['/uploads/2025/02/og-2.webp'], }, robots: { index: true, diff --git a/app/[locale]/products/[...slug]/page.tsx b/app/[locale]/products/[...slug]/page.tsx index 062c51e3..53b9ea8b 100644 --- a/app/[locale]/products/[...slug]/page.tsx +++ b/app/[locale]/products/[...slug]/page.tsx @@ -46,20 +46,11 @@ export async function generateMetadata({ params }: ProductPageProps): Promise