wip: moved the content loader

This commit is contained in:
2024-05-30 11:51:21 +10:00
parent ff6886e309
commit 1340f2029a
5 changed files with 139 additions and 120 deletions

View File

@@ -1,3 +1,6 @@
import { getPost } from '@/backend/post';
import { content } from '@/components/post'
export default async function Post({ params }: { params: { slug: string } }) {
// let content;
//
@@ -17,5 +20,6 @@ export default async function Post({ params }: { params: { slug: string } }) {
// </div>
// );
return(<></>);
let postContent :string = await getPost(params.slug);
return(content(postContent));
}