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