diff --git a/app/root.tsx b/app/root.tsx index 1a70950..b1133a0 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -17,7 +17,6 @@ export function Layout({ children }: { children: React.ReactNode }) {
- diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 76dbcc5..2a7a21e 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -14,35 +14,8 @@ export const meta: MetaFunction = () => { ]; }; -interface BlogPost { - id: string; - title: string; - excerpt: string; - date: string; - access: string; // Where its located in the folder - tags: string[]; - hide_date?: boolean; -} - -export async function loader() { - const posts: BlogPost[] = [ - { - id: "1", - title: "My First Post", - excerpt: "Yeah, as it says, this is my first post.", - date: "2024-01-23", - access: "myfirstpost", - tags: ["Hello, World!"], - hide_date: true, - }, - // Add more posts here - ]; - - return json({ posts }); -} export default function Index() { - const { posts } = useLoaderData