--- interface Props { title: string; date: Date; type: string; summary?: string; slug: string; readingTime?: number; } const { title, date, type, summary, slug, readingTime } = Astro.props; const base = import.meta.env.BASE_URL.replace(/\/?$/, '/'); const formattedDate = date.toLocaleDateString('en-US', { year: 'numeric', month: 'numeric', day: 'numeric', }); const isoDate = date.toISOString().split('T')[0]; --- {type} {readingTime && {readingTime} min read} {title} {summary && {summary}} {formattedDate}
{summary}