--- import BlogCard from '@components/blog/BlogCard.astro'; interface CollectionEntry { id: string; data: { title: string; description: string; category: string; categoryColor: string; date: Date; readTime: string; imageUrl: string; }; } interface Props { posts: CollectionEntry[]; currentSlug?: string; } const { posts, currentSlug } = Astro.props; // Форматируем дату const formatDate = (date: Date) => { return date.toLocaleDateString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' }); }; // Фильтруем текущую статью const filteredPosts = currentSlug ? posts.filter(post => post.id !== currentSlug).slice(0, 3) : posts.slice(0, 3); --- Читайте также {filteredPosts.map((post) => ( ))}