--- import '../styles/global.css'; interface Props { title: string; description?: string; } const { title, description = 'Twitch VOD Manager documentation' } = Astro.props; const nav = [ { href: '/', label: 'Overview' }, { href: '/getting-started', label: 'Getting Started' }, { href: '/features', label: 'Features' }, { href: '/configuration', label: 'Configuration' }, { href: '/troubleshooting', label: 'Troubleshooting' }, { href: '/development', label: 'Development' }, { href: '/release-process', label: 'Release Process' } ]; const pathname = Astro.url.pathname.endsWith('/') ? Astro.url.pathname : `${Astro.url.pathname}/`; const isActive = (href: string): boolean => { if (href === '/') { return pathname === '/'; } const normalizedHref = href.endsWith('/') ? href : `${href}/`; return pathname.startsWith(normalizedHref); }; ---