Updates
This commit is contained in:
parent
668b596402
commit
d586c56bd3
@ -80,7 +80,8 @@ export function twuiAddActiveLinksFn({
|
|||||||
|
|
||||||
const linkAttr = linkEl.getAttribute("href");
|
const linkAttr = linkEl.getAttribute("href");
|
||||||
|
|
||||||
if (window.location.pathname === "/") {
|
if (window.location.pathname === "/" && linkAttr == "/") {
|
||||||
|
linkEl.classList.add("active");
|
||||||
} else if (
|
} else if (
|
||||||
isLinkStrict &&
|
isLinkStrict &&
|
||||||
linkEl.getAttribute("href") === window.location.pathname
|
linkEl.getAttribute("href") === window.location.pathname
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { TWUI_LINK_LIST_LINK_OBJECT } from "@/components/lib/elements/LinkList";
|
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";
|
import { ReactNode } from "react";
|
||||||
|
|
||||||
export const HeaderLinks: TWUI_LINK_LIST_LINK_OBJECT[] = [
|
export const HeaderLinks: TWUI_LINK_LIST_LINK_OBJECT[] = [
|
||||||
|
Loading…
Reference in New Issue
Block a user