This commit is contained in:
Tben 2022-06-10 09:59:51 +01:00
parent 445a233536
commit d30036e11b

View File

@ -46,6 +46,10 @@ const GeneralLayout = ({ children, pageName }) => {
if (link.dataset.href === window.location.pathname) { if (link.dataset.href === window.location.pathname) {
link.classList.add("active-page"); link.classList.add("active-page");
} }
if (window.location.pathname.match(new RegExp(`${link.dataset.href}\\/.*`))) {
link.classList.add("active-page");
}
}); });
gsap.to("#main-content-wrapper", { gsap.to("#main-content-wrapper", {