We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abcc187 commit d5cc50cCopy full SHA for d5cc50c
src/layouts/Navigation.astro
@@ -55,7 +55,7 @@ const DefaultIcon = ({ text }: { text: string }) => {
55
.map((p) => {
56
const gradientUrl = `url(#gradient-${p.name ?? p.title})`;
57
return (
58
- <li class={`nav--list__item ${currentPath === p.path ? "active" : ""}`}>
+ <li class={`nav--list__item ${currentPath.split("/")[1] === p.path.split("/")[1] ? "active" : ""}`}>
59
<a href={p.path}>
60
<span class="iconx">
61
{p.icon ? (
0 commit comments