- {post?.title} -
-
-
-
-
- {post?.tags?.map((tag, i) => (
-
- {tag}
-
- ))}
-
-
+ {!post ? (
+
+
+
-
+ )}
+
+ Loading...
+ ) : (
+ + {post?.title} +
+
+
+
+
+ {post?.tags?.map((tag, i) => (
+
+ {tag}
+
+ ))}
+
+ h2]:text-2xl [&>h2]:font-bold [&>h2]:my-4 [&>h2]:text-[#ebdbb2]!
[&>h3]:text-xl [&>h3]:font-bold [&>h3]:my-4 [&>h3]:text-[#ebdbb2]!
[&>h4]:text-lg [&>h4]:font-bold [&>h4]:my-4 [&>h4]:text-[#ebdbb2]!
@@ -65,13 +65,13 @@ const BlogTemplate = () => {
[&>table>tbody>tr]:m-0 [&>table>tbody>tr]:border-t [&>table>tbody>tr]:p-0 [&>table>tbody>tr:even]:bg-muted
[&>table>tbody>tr>td]:border [&>table>tbody>tr>td]:px-4 [&>table>tbody>tr>td]:py-2 [&>table>tbody>tr>td]:text-left [&>table>tbody>tr>td[align=center]]:text-center [&>table>tbody>tr>td[align=right]]:text-right
"
- dangerouslySetInnerHTML={{ __html: post?.html }}
- />
-
- )}
-
-
- )
+ dangerouslySetInnerHTML={{ __html: post?.html }}
+ />
+
-
-
-
-
- )
+ return (
+ {children}
-
-
+
+
+
+
+ )
}
export default MainTemplate
{children}
+
+