wip: moved the content loader
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user