--- import { Icon } from 'astro-icon/components'; import { Image } from 'astro:assets'; import { formatDate } from '@support/time'; import { getDirectusImageURL } from '@/support/url'; interface Props { title: string; subTitle: string; url: string; pubDate: Date; imgOne: string; imgOneAlt: string; imgTwo?: string; imgTwoAlt?: string; } const { title, subTitle, url, pubDate, imgOne, imgOneAlt, imgTwo, imgTwoAlt } = Astro.props; ---

{title}

{subTitle}

Read More
{formatDate(pubDate)}
{!imgTwo ? (
{imgOneAlt}
) : ( <>
{imgOneAlt}
)}