---
import TerminalBorder from "../components/TerminalBorder.astro";
function formatDate(date: Date) {
const day = date.getDate();
const month = date.toLocaleString("default", { month: "long" });
const year = date.getFullYear();
let suffix = "th";
if (day === 1 || day === 21 || day === 31) {
suffix = "st";
} else if (day === 2 || day === 22) {
suffix = "nd";
} else if (day === 3 || day === 23) {
suffix = "rd";
}
return `${month} ${day}${suffix} ${year}`;
}
interface Props {
title: string;
description: string;
date: Date;
href: string;
header?: string;
}
const { title, description, date, href, header } = Astro.props;
---
{title}
{description}