Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt
2023-05-17 09:18:08 +02:00
parent a4ed5449e9
commit 7f01d39909
20 changed files with 133 additions and 37 deletions

View File

@ -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>
) : (