/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ import { Rule } from "@/components/rule"; import { getSortedPostsData } from "@/lib/posts"; export default function Home() { const posts = getSortedPostsData(); return (

{"Announcements"}

{"This page documents all of our organisation's announcements, in reverse chronological order."}

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

{post.data.title}

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

{post.data.summary}

; })}
); }