diff --git a/.gitignore b/.gitignore index 76add87..e32a602 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -dist \ No newline at end of file +dist +.astro \ No newline at end of file diff --git a/src/components/layout/Navigation.astro b/src/components/layout/Navigation.astro index 0c9e6bd..60144ad 100644 --- a/src/components/layout/Navigation.astro +++ b/src/components/layout/Navigation.astro @@ -66,7 +66,8 @@ const baseClasses = { document.querySelectorAll("nav a").forEach((link) => { const path = link.getAttribute("data-path"); - toggleLinkClasses(link, path === currentPath || path === currentHash); + if (!path) return; + toggleLinkClasses(link, currentPath.includes(path.replace("#","")) || currentHash.includes(path)); }); } @@ -123,7 +124,7 @@ const baseClasses = { class={baseClasses.link} data-path={item.path} aria-label={item.name} - aria-current={item.path === Astro.url.pathname ? 'page' : undefined} + aria-current={Astro.url.pathname.includes(item.path) ? 'page' : undefined} > {item.name} diff --git a/src/pages/portfolio/projects/ingdoc.md b/src/pages/portfolio/projects/ingdoc.md index fb31509..f0a1c52 100644 --- a/src/pages/portfolio/projects/ingdoc.md +++ b/src/pages/portfolio/projects/ingdoc.md @@ -13,7 +13,7 @@ The **InGDoc** is a community group created in the idea of providing to some big ## 📖 History -Created in 2020 the team was originally founded to follow the ZEvent2024. Our first tool was google documents that followed the progress of donation goals and amount raised. +Created in 2020 the team was originally founded to follow the ZEvent2020. Our first tool was google documents that followed the progress of donation goals and amount raised. In **2022** we start collecting more data about streams and create infographics at the end of the different events that we follow. We have worked along some organisations to create custom tools and we still bring ideas of the community to life.