This commit is contained in:
eric
2026-06-07 23:57:52 -05:00
parent 6d479c9f94
commit 47b1ae8514
56 changed files with 4163 additions and 874 deletions

View File

@@ -63,6 +63,9 @@ export default function NavbarComponent() {
const isActive = useCallback((href: string) => {
if (href.startsWith("/#")) return false;
if (href === "/") return pathname === "/";
if (href === "/digital") {
return /^\/(zh|en)\/digital(?:\/|$)/.test(pathname);
}
return pathname.startsWith(href);
}, [pathname]);