--- import type { Article } from '@/lib/site/types' import ArticleCardItem from './ArticleCardItem.astro' type Props = { articles: Article[] title?: string } const { articles, title } = Astro.props --- {articles.length > 0 && (
{title &&

{title}

}
{articles.map((article) => ( ))}
)}