wip
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user