--- type Props = { post: { title: string publishDate: string description: string url: string tags?: string[] } } const { post } = Astro.props ---
{post.title}
{ new Date(post.publishDate) .toLocaleDateString('it-IT', { year: 'numeric', month: 'long', day: 'numeric', }) // to Title Case .replace(/(\w)(\w*)/g, (match, p1, p2) => p1.toUpperCase() + p2.toLowerCase()) }
{post.description}
{ post.tags?.map(tag => ( #{tag} )) }