(() => { "use strict"; // Highlight active nav link const path = location.pathname.replace(/\/$/, "") || "/"; document.querySelectorAll(".site-nav a").forEach(a => { const href = a.getAttribute("href").replace(/\/$/, "") || "/"; if (href === path) a.setAttribute("aria-current", "page"); }); })();