migration wip
This commit is contained in:
@@ -4,7 +4,7 @@ import { getPostsByLocale, getCategoriesByLocale, getMediaById } from '@/lib/dat
|
||||
import { getSiteInfo, t, getLocalizedPath } from '@/lib/i18n';
|
||||
import { SEO } from '@/components/SEO';
|
||||
import { LocaleSwitcher } from '@/components/LocaleSwitcher';
|
||||
import { processHTML } from '@/lib/html-compat';
|
||||
import { ContentRenderer } from '@/components/content/ContentRenderer';
|
||||
|
||||
interface PageProps {
|
||||
params: {
|
||||
@@ -140,10 +140,12 @@ export default async function BlogPage({ params }: PageProps) {
|
||||
{post.title}
|
||||
</Link>
|
||||
</h3>
|
||||
<div
|
||||
className="text-gray-600 line-clamp-3 text-sm mb-4"
|
||||
dangerouslySetInnerHTML={{ __html: processHTML(post.excerptHtml) }}
|
||||
/>
|
||||
<div className="text-gray-600 line-clamp-3 text-sm mb-4">
|
||||
<ContentRenderer
|
||||
content={post.excerptHtml}
|
||||
className="text-gray-600 line-clamp-3 text-sm"
|
||||
/>
|
||||
</div>
|
||||
<Link
|
||||
href={getLocalizedPath(`/blog/${post.slug}`, locale as 'en' | 'de')}
|
||||
className="inline-flex items-center text-sm font-medium text-blue-600 hover:text-blue-700"
|
||||
@@ -205,10 +207,12 @@ export default async function BlogPage({ params }: PageProps) {
|
||||
{post.title}
|
||||
</Link>
|
||||
</h3>
|
||||
<div
|
||||
className="text-gray-600 mb-3"
|
||||
dangerouslySetInnerHTML={{ __html: processHTML(post.excerptHtml) }}
|
||||
/>
|
||||
<div className="text-gray-600 mb-3">
|
||||
<ContentRenderer
|
||||
content={post.excerptHtml}
|
||||
className="text-gray-600 mb-3"
|
||||
/>
|
||||
</div>
|
||||
<Link
|
||||
href={getLocalizedPath(`/blog/${post.slug}`, locale as 'en' | 'de')}
|
||||
className="inline-flex items-center text-sm font-medium text-blue-600 hover:text-blue-700"
|
||||
|
||||
Reference in New Issue
Block a user