added blog post page, reverted back to flex blog landing, added types

This commit is contained in:
2025-02-25 13:22:45 -05:00
parent addb2e55d9
commit c4e11c2e02
11 changed files with 75 additions and 34 deletions

View File

@ -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>
);
}