mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
fix: navbar path error
This commit is contained in:
parent
a2bf9ee3c5
commit
a133dfd7f2
3 changed files with 28 additions and 17 deletions
|
@ -12,7 +12,7 @@ const isTagActive = isTag
|
|||
const isAboutActive = isAbout
|
||||
|
||||
function getNavItemClass(isActive: boolean) {
|
||||
return isActive ? 'font-bold c-primary' : 'hover:c-primary hover:font-bold'
|
||||
return isActive ? 'font-bold c-primary' : 'hover:(c-primary font-bold) transition-all'
|
||||
}
|
||||
|
||||
const navItems = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue