This commit is contained in:
Timo Knuth
2026-01-12 16:56:52 +01:00
parent beed961eef
commit 111575aeda
5 changed files with 37 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ import type { Metadata } from 'next';
import SeoJsonLd from '@/components/SeoJsonLd';
import { organizationSchema, websiteSchema } from '@/lib/schema';
import HomePageClient from '@/components/marketing/HomePageClient';
import { generateFaqSchema } from '@/lib/schema-utils';
import en from '@/i18n/en.json'; // Import English translations for schema generation
function truncateAtWord(text: string, maxLength: number): string {
if (text.length <= maxLength) return text;
@@ -45,7 +47,7 @@ export async function generateMetadata(): Promise<Metadata> {
export default function HomePage() {
return (
<>
<SeoJsonLd data={[organizationSchema(), websiteSchema()]} />
<SeoJsonLd data={[organizationSchema(), websiteSchema(), generateFaqSchema(en.faq.questions)]} />
{/* Server-rendered SEO content for crawlers */}
<div className="sr-only" aria-hidden="false">