mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 02:19:08 +03:00
fix: fixed active link in header
This commit is contained in:
parent
4d84cea1db
commit
fcc69a1eab
@ -24,7 +24,7 @@ const { pathname } = Astro.url;
|
||||
{
|
||||
nav.map((link) => (
|
||||
<li>
|
||||
<TranslatedLink class={pathname.includes(link.url) && "active"} to={link.url}>
|
||||
<TranslatedLink class={link.url.includes(pathname) && "active"} to={link.url}>
|
||||
<UIString key={link.key} />
|
||||
</TranslatedLink>
|
||||
</li>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user