--- import type { CollectionEntry } from 'astro:content'; import Base from './Base.astro'; import FormattedDate from '../components/FormattedDate.astro'; type Props = CollectionEntry<'blog'>['data'] & { id?: string }; const { title, description, pubDate, updatedDate, heroImage, id } = Astro.props; --- {heroImage && ( )} {updatedDate && ( ยท Aggiornato )} {title} {id && ( Modifica )}