import { getSortedPostsData, PostMeta } from "../lib/posts"; import Link from "next/link"; import Window from "../components/window"; function isNew(dateStr: string): boolean { const postDate = new Date(dateStr); const now = new Date(); const diffDays = (now.getTime() - postDate.getTime()) / (1000 * 60 * 60 * 24); return diffDays <= 30; } export default function Home() { const allPostsData: PostMeta[] = getSortedPostsData(); return (
A little corner of the internet from the 2000s.
No posts found. Add some markdown files to the 'posts' directory!
)}