This commit is contained in:
Benjamin Toby 2025-07-20 11:15:18 +01:00
parent 668b596402
commit d586c56bd3
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,8 @@ export function twuiAddActiveLinksFn({
const linkAttr = linkEl.getAttribute("href");
if (window.location.pathname === "/") {
if (window.location.pathname === "/" && linkAttr == "/") {
linkEl.classList.add("active");
} else if (
isLinkStrict &&
linkEl.getAttribute("href") === window.location.pathname

View File

@ -1,5 +1,5 @@
import { TWUI_LINK_LIST_LINK_OBJECT } from "@/components/lib/elements/LinkList";
import { GitBranch, Github, Linkedin, Mail, Users } from "lucide-react";
import { GitBranch, Linkedin, Mail } from "lucide-react";
import { ReactNode } from "react";
export const HeaderLinks: TWUI_LINK_LIST_LINK_OBJECT[] = [