og
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 4m48s

This commit is contained in:
2026-01-29 17:26:02 +01:00
parent 13e56a88bc
commit a2f94f15bc
17 changed files with 102 additions and 36 deletions

View File

@@ -5,6 +5,7 @@ import { getTranslations } from 'next-intl/server';
import { Metadata } from 'next';
import { getPageBySlug, getAllPages } from '@/lib/pages';
import { mdxComponents } from '@/components/blog/MDXComponents';
import { getOGImageMetadata } from '@/lib/metadata';
interface PageProps {
params: {
@@ -47,6 +48,7 @@ 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: getOGImageMetadata(slug, pageData.frontmatter.title, locale),
},
twitter: {
card: 'summary_large_image',