patx/afterdarklabs

fix nav

Commit 5262068 · patx · 2026-07-08T01:38:49-04:00

Changeset
5262068d3d377b014b3d6f37c516c0a92e122a3e
Parents
5bca3cc85cc3b0205685dced95e18d92007472ff

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/docs/index.html b/docs/index.html
index 07bfb14..05895ec 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -414,14 +414,8 @@
 
             if (!navLinks.length) return;
 
-            const linkedHrefs = Array.from(new Set(
-                navLinks
-                    .map(link => link.getAttribute('href'))
-                    .filter(href => href && href.startsWith('#'))
-            ));
             const sections = Array.from(document.querySelectorAll('main section[id]'))
-                .map(element => ({ element, href: `#${element.id}` }))
-                .filter(section => linkedHrefs.includes(section.href));
+                .map(element => ({ element, href: `#${element.id}` }));
 
             function setActive(href) {
                 navLinks.forEach(link => {