--- export interface Props { title: string; description: string; category: string; categoryColor?: string; date: string; readTime: string; imageUrl?: string; slug?: string; } const { title, description, category, categoryColor = 'bg-gold', date, readTime, imageUrl = '/images/blog/default.avif', slug = '#' } = Astro.props; // Форматируем дату const formatDate = (dateStr: string) => { const d = new Date(dateStr); return d.toLocaleDateString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' }); }; ---
{title} {category}

{title}

{description}

{formatDate(date)} {readTime}