/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ import type { JSX } from "react"; import { Rule } from "@/components/rule"; import { getSortedPostsData } from "@/lib/posts"; /** * Renders the home page. * @returns JSX component. */ const Home = (): JSX.Element => { const posts = getSortedPostsData(); return (

{"Blog"}

{"Welcome to the musings of a transfem software engineer!"}

{posts.map((post) => { return

{post.data.title}

{post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" })}

{post.data.summary}

; })}
); }; export default Home;