--- const { slug, title, type, description, tags = [], created_at, updated_at, notes, } = Astro.props; const formatDate = (dateStr: string | undefined) => { if (!dateStr) return "–"; const date = new Date(dateStr); return isNaN(date.getTime()) ? "Invalid date" : date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', }); }; ---
{notes}
{description}
Created: {formatDate(created_at)} • Updated: {formatDate(updated_at)}