diff --git a/src/components/Scripts.astro b/src/components/Scripts.astro index 8ad731f..814f64c 100644 --- a/src/components/Scripts.astro +++ b/src/components/Scripts.astro @@ -10,8 +10,10 @@ links.forEach((link) => { if (link.getAttribute('href') === currentPath) { link.classList.add('is-active'); + link.setAttribute('aria-current', 'page'); } else { link.classList.remove('is-active'); + link.removeAttribute('aria-current'); } }); }