import { getSortedPostsData, PostMeta } from "../lib/posts"; import Link from "next/link"; import Window from "../components/window"; export default function Home() { const allPostsData: PostMeta[] = getSortedPostsData(); return (

Gabriel's Kaszewski Blog

A little corner of the internet from the 2000s.

{/* The list of posts is displayed inside our custom Window component */} {allPostsData.length > 0 ? (
    {allPostsData.map(({ id, date, title }) => (
  • {title}

    {new Date(date).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric", })}
  • ))}
) : (

No posts found. Add some markdown files to the 'posts' directory!

)}
); }