+ if (!post) throw new Error('Post not found for slug: ${params.slug}');
+return (
+ <>
+
+
+
+
-
By {post.author}
-
-
- {post.title}
-
-
+
By {post.author}
-
+ {post.title}
+
+
+
+
+
,
+ h1: ({ node, ...props }) => ,
+ h2: ({ node, ...props }) => ,
+ h3: ({ node, ...props }) => ,
+ code: ({ node, ...props }) => (
+
),
+ pre: ({ node, ...props }) => (
+
+ ),
+ ul: ({ node, ...props }) => ,
+ ol: ({ node, ...props }) =>
,
+ li: ({ node, ...props }) => ,
+ table: ({ node, ...props }) => (
+
+ ),
+ th: ({ node, ...props }) => (
+ |
+ ),
+ td: ({ node, ...props }) => (
+ |
+ ),
}}
- />
-
-
- >
- );
+ >
+ {post.body.raw}
+
+
+
+
+ >
+);
};
-export default PostLayout;
+export default PostLayout;
\ No newline at end of file