add blog
This commit is contained in:
parent
445a233536
commit
d30036e11b
@ -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", {
|
||||||
|
Loading…
Reference in New Issue
Block a user