mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 18:39:14 +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) => (
|
nav.map((link) => (
|
||||||
<li>
|
<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} />
|
<UIString key={link.key} />
|
||||||
</TranslatedLink>
|
</TranslatedLink>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user