added blog post page, reverted back to flex blog landing, added types
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
|
||||
import { PostHeader } from "../../components/PostHeader.tsx";
|
||||
import { PostBody } from "../../components/PostBody.tsx";
|
||||
|
||||
interface PageData {
|
||||
post_id: number;
|
||||
@ -24,5 +26,13 @@ export const handler: Handlers<PageData> = {
|
||||
};
|
||||
|
||||
export default function PostIdentifier({ data }: PageProps<PageData>) {
|
||||
return <div className=""></div>;
|
||||
const { postData } = data;
|
||||
console.log(postData);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<PostHeader post={postData} />
|
||||
<PostBody post={postData} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user