Remove unused script tag from Layout component, add docker-compose and pnpm workspace configuration

This commit is contained in:
2025-08-30 13:42:01 +02:00
parent 54e4bc705c
commit 02549ae97a
4 changed files with 19 additions and 28 deletions

View File

@@ -17,7 +17,6 @@ export function Layout({ children }: { children: React.ReactNode }) {
<html lang="en">
<head>
<meta charSet="utf-8" />
<script defer data-domain="space.reversed.dev" src="https://analytics.reversed.dev/js/script.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://cdn.reversed.dev/pictures/cat.png" type="image/png" />
<Meta />

View File

@@ -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<typeof loader>();
const [status, setStatus] = useState("");
const [border_status, setBorderStatus] = useState("border-gray-700");