This commit is contained in:
2026-01-06 13:55:04 +01:00
parent 297de69928
commit f991ea6b9b
393 changed files with 41362 additions and 4811 deletions

View File

@@ -2,7 +2,6 @@ import { notFound } from 'next/navigation';
import type { Metadata } from 'next';
import Link from 'next/link';
import { getPostBySlug, getPostsByLocale, getMediaById, getSiteInfo } from '@/lib/data';
import { processHTML } from '@/lib/html-compat';
import { getLocalizedPath } from '@/lib/i18n';
import { t } from '@/lib/i18n';
import { SEO } from '@/components/SEO';
@@ -142,8 +141,7 @@ export default async function BlogDetailPage({ params }: PageProps) {
notFound();
}
// Process HTML content with WordPress compatibility
const processedContent = processHTML(post.contentHtml);
// Content is already processed during data export
return (
<>
@@ -191,7 +189,7 @@ export default async function BlogDetailPage({ params }: PageProps) {
{post.excerptHtml && (
<p className="text-xl text-gray-600 leading-relaxed">
{post.excerptHtml}
<ContentRenderer content={post.excerptHtml} />
</p>
)}
</header>
@@ -212,12 +210,13 @@ export default async function BlogDetailPage({ params }: PageProps) {
})()}
{/* Article Content */}
<div className="mb-12">
<ContentRenderer
content={processedContent}
className="prose prose-lg prose-blue"
/>
</div>
<div className="mb-12">
<ContentRenderer
content={post.contentHtml}
className="prose prose-lg prose-blue"
parsePatterns={true}
/>
</div>
{/* Article Footer */}
<footer className="border-t border-gray-200 pt-8 mt-12">