@ -1,6 +1,6 @@
|
||||
---
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import RichText from "../../components/RichText.astro";
|
||||
import Content from "../../components/Content.astro";
|
||||
import type { Post } from "../../types";
|
||||
import { getPost, getPosts } from "../../utils/payload";
|
||||
|
||||
@ -22,7 +22,7 @@ const post = id && (await getPost(id));
|
||||
<div class="max-w-3xl mx-auto space-y-3 my-3">
|
||||
<a href="/">BACK</a>
|
||||
<h1>{post.title}</h1>
|
||||
{post.content && <RichText content={post.content} />}
|
||||
{post.content && <Content content={post.content} />}
|
||||
</div>
|
||||
</Layout>
|
||||
) : (
|
||||
|
Reference in New Issue
Block a user