--- import type { CollectionEntry } from 'astro:content'; import BaseLayout from './BaseLayout.astro'; interface Props { post: CollectionEntry<'blog'>; } const { post } = Astro.props; ---
{post.data.heroImage && (
)}
{post.data.pubDate.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric', })} {post.data.categories.length > 0 && ( {post.data.categories.join(', ')} )}

{post.data.title}

{post.data.description}

{post.data.tags.length > 0 && (
{post.data.tags.map((tag) => #{tag})}
)}