seo/sitemap #18

Merged
GauthierWebDev merged 7 commits from seo/sitemap into main 2025-04-22 11:26:38 +00:00
Showing only changes of commit a2acd6be8f - Show all commits

View File

@ -27,7 +27,9 @@ function NavigationItem(props: NavigationItemProps) {
return props.section.links.some((link) => checkIsLinkActive(link)); return props.section.links.some((link) => checkIsLinkActive(link));
}; };
const [isOpened, setIsOpened] = createSignal(checkIsActive()); const [isOpened, setIsOpened] = createSignal(
checkIsActive() || pageContext.urlPathname === "/",
);
createEffect(() => { createEffect(() => {
// If the current URL path is the same as the link's href, set isOpened to true // If the current URL path is the same as the link's href, set isOpened to true