--- import BrandLogo from '@components/ui/logos/BrandLogo.astro'; import ThemeToggleButton from '@components/buttons/ThemeToggleButton.astro'; import { NavigationLinks } from '@/config'; const pathname = new URL(Astro.request.url).pathname; const currentPath = pathname.slice(1); --- {NavigationLinks.map((item) => { const isActive = currentPath === (item.url === '/' ? '' : item.url.slice(1)); return ( {item.name} ); })}