diff --git a/app/[locale]/blog/[slug]/page.tsx b/app/[locale]/blog/[slug]/page.tsx index c58938c8..a5aed315 100644 --- a/app/[locale]/blog/[slug]/page.tsx +++ b/app/[locale]/blog/[slug]/page.tsx @@ -88,6 +88,7 @@ export default async function BlogPost({ params }: BlogPostProps) { alt={post.frontmatter.title} fill priority + quality={90} className="object-cover" sizes="100vw" style={{ diff --git a/components/PayloadRichText.tsx b/components/PayloadRichText.tsx index 598441f8..c3de9da9 100644 --- a/components/PayloadRichText.tsx +++ b/components/PayloadRichText.tsx @@ -42,7 +42,7 @@ const jsxConverters: JSXConverters = { // Use div instead of p for paragraphs to allow nested block elements (like the lists above) paragraph: ({ node, nodesToJSX }: any) => { return ( -
+
{nodesToJSX({ nodes: node.children })}
); @@ -77,7 +77,7 @@ const jsxConverters: JSXConverters = { const children = nodesToJSX({ nodes: node.children }); if (node?.listType === 'number') { return ( -
    +
      {children}
    ); @@ -86,7 +86,7 @@ const jsxConverters: JSXConverters = { return ; } return ( -