--- export interface Props { links?: Array<{ name: string; url: string }>; class?: string; } const defaultLinks = [ { name: 'Главная', url: '/' }, { name: 'Услуги', url: '/services' }, { name: 'Кейсы', url: '/cases' }, { name: 'Блог', url: '/blog' }, { name: 'Отзывы', url: '/reviews' }, { name: 'Контакты', url: '/contacts' }, ]; const { links = defaultLinks, class: className = '', }: Props = Astro.props; // Определяем текущую страницу const currentPath = Astro.url.pathname; const isHomePage = currentPath === '/' || currentPath === ''; // Фильтруем ссылки: убираем "Главная" если мы на главной странице const filteredLinks = isHomePage ? links.filter(link => link.url !== '/') : links; ---