diff --git a/apps/marketing/src/app/(marketing)/blog/[post]/content.tsx b/apps/marketing/src/app/(marketing)/blog/[post]/content.tsx
new file mode 100644
index 000000000..ebcd5f8b9
--- /dev/null
+++ b/apps/marketing/src/app/(marketing)/blog/[post]/content.tsx
@@ -0,0 +1,23 @@
+'use client';
+
+import Image from 'next/image';
+
+import type { BlogPost } from 'contentlayer/generated';
+import type { MDXComponents } from 'mdx/types';
+import { useMDXComponent } from 'next-contentlayer/hooks';
+
+const mdxComponents: MDXComponents = {
+ MdxNextImage: (props: { width: number; height: number; alt?: string; src: string }) => (
+
+ ),
+};
+
+export type BlogPostContentProps = {
+ post: BlogPost;
+};
+
+export const BlogPostContent = ({ post }: BlogPostContentProps) => {
+ const MdxContent = useMDXComponent(post.body.code);
+
+ return ;
+};
diff --git a/apps/marketing/src/app/(marketing)/blog/[post]/page.tsx b/apps/marketing/src/app/(marketing)/blog/[post]/page.tsx
index 324f742d1..03c5bcb81 100644
--- a/apps/marketing/src/app/(marketing)/blog/[post]/page.tsx
+++ b/apps/marketing/src/app/(marketing)/blog/[post]/page.tsx
@@ -1,16 +1,15 @@
-import Image from 'next/image';
import Link from 'next/link';
import { notFound } from 'next/navigation';
import { allBlogPosts } from 'contentlayer/generated';
import { ChevronLeft } from 'lucide-react';
-import type { MDXComponents } from 'mdx/types';
-import { useMDXComponent } from 'next-contentlayer/hooks';
import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server';
import { CallToAction } from '~/components/(marketing)/call-to-action';
+import { BlogPostContent } from './content';
+
export const dynamic = 'force-dynamic';
export const generateMetadata = ({ params }: { params: { post: string } }) => {
@@ -42,12 +41,6 @@ export const generateMetadata = ({ params }: { params: { post: string } }) => {
};
};
-const mdxComponents: MDXComponents = {
- MdxNextImage: (props: { width: number; height: number; alt?: string; src: string }) => (
-
- ),
-};
-
export default async function BlogPostPage({ params }: { params: { post: string } }) {
await setupI18nSSR();
@@ -57,8 +50,6 @@ export default async function BlogPostPage({ params }: { params: { post: string
notFound();
}
- const MDXContent = useMDXComponent(post.body.code);
-
return (
@@ -87,7 +78,7 @@ export default async function BlogPostPage({ params }: { params: { post: string
-
+
{post.tags.length > 0 && (