--- interface Props { title: string; description: string; pubDate: Date; slug: string; tags?: string[]; heroImage?: string; } const { title, description, pubDate, slug, tags = [], heroImage } = Astro.props; const formattedDate = pubDate.toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric', }); --- {heroImage && (
)}
{ tags.length > 0 && ( <> · {tags.map((tag) => ( {tag} ))} ) }

{title}

{description}

Read more