--- import BrandLogo from '@components/ui/logos/BrandLogo.astro'; import ThemeToggle from '@components/ui/buttons/ThemeToggle.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} ); }) }