File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 11---
22const baseUrl = import .meta .env .BASE_URL
3+ const thisUrl = Astro .url .pathname
34const about = baseUrl + ' about/'
45const v2 = baseUrl + ' v2/'
56const graphql = baseUrl + ' graphql/'
67---
8+
79<nav >
810 <ul
911 class ="
1012 flex gap-6
1113 text-(--sl-color-white) pr-4
12- [&_li]:hover:text-(--sl-color-accent-high)
13- [&_li]:hover:font-bold
14- [&_li]:hover:underline
14+ [&_a]:hover:text-(--sl-color-accent-high)
15+ [&_a]:hover:font-bold
16+ [&_a]:hover:underline
17+ [&_a]:font-semibold
18+ [&_span]:opacity-50
1519 "
1620 >
1721 <li >
18- <a href ={ baseUrl } >Home</a >
22+ { thisUrl !== baseUrl ? <a href = { baseUrl } >Home </a > : < span >Home</ span > }
1923 </li >
2024 <li >
21- <a href ={ about } >About</a >
25+ { thisUrl !== about ? <a href = { about } >About</a > : < span >About</ span > }
2226 </li >
2327 <li >
24- <a href ={ v2 } >API v2</a >
28+ { thisUrl !== v2 ? <a href = { v2 } >API v2</a > : < span >API v2</ span > }
2529 </li >
2630 <li >
27- <a href ={ graphql } >GraphQL v1Beta</a >
31+ { thisUrl !== graphql ? <a href = { graphql } >GraphQL v1Beta</a > : < span >GraphQL v1Beta</ span > }
2832 </li >
2933 </ul >
3034</nav >
You can’t perform that action at this time.
0 commit comments