Skip to content

Commit

Permalink
make current page underline primary
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Sep 20, 2024
1 parent 9ffd39d commit 2fb094f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RecMenu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const currentPath = Astro.url.pathname;
<Astro.self links={link.children} isOpen={isOpen}/>
</details>
) : (
<a href={link.href} class:list={[{"underline": (currentPath === link.href)}]}>{link.text}</a>
<a href={link.href} class:list={[{"underline": (currentPath === link.href)}, "decoration-primary"]}>{link.text}</a>
)}
</li>
))}
Expand Down

0 comments on commit 2fb094f

Please sign in to comment.