Removed garbage

This commit is contained in:
2025-06-03 14:40:15 -06:00
parent 3218432790
commit 5f518523e9

View File

@ -50,7 +50,7 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
}; };
}, []); }, []);
// Use the client path instead of the prop path // Use the client path
const activePath = currentClientPath.value; const activePath = currentClientPath.value;
// Normalize path by removing trailing slashes for consistent comparison // Normalize path by removing trailing slashes for consistent comparison
@ -58,14 +58,6 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
? activePath.slice(0, -1) ? activePath.slice(0, -1)
: activePath; : activePath;
// Debug logging to see what paths we're getting
console.log('NavigationBar Debug:', {
propPath: currentPath,
clientPath: activePath,
normalizedPath: normalizedPath,
isResumeMatch: normalizedPath === "/resume"
});
const isPostsPath = (path: string) => { const isPostsPath = (path: string) => {
return path.startsWith("/posts") || path.startsWith("/post/"); return path.startsWith("/posts") || path.startsWith("/post/");
}; };