--- import type { Post } from '../models/Post.ts'; import FormattedDate from './FormattedDate.astro'; const posts: Post[] = Astro.props.posts; const collection: string = Astro.props.collection; const color = Astro.props.color || 'var(--text)'; --- { posts.map((post) => ( { post.heroImage && ( ) } { !post.heroImage && ( ) } {post.title} )) }