File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,22 @@ import DownloadButton from "./ui/DownloadButton.astro";
15
15
<ul
16
16
class =" text-prism-text-light dark:text-prism-text-dark flex items-center gap-4 font-medium"
17
17
>
18
- <li ><a class =" hover:underline" href =" /news" >News</a ></li >
19
- <li ><a class =" hover:underline" href =" /about" >About</a ></li >
18
+ <li >
19
+ <a
20
+ class ={ ` hover:underline ${Astro .url .pathname .startsWith (" /news" ) ? " font-bold" : " " } ` }
21
+ href =" /news"
22
+ >
23
+ News
24
+ </a >
25
+ </li >
26
+ <li >
27
+ <a
28
+ class ={ ` hover:underline ${Astro .url .pathname .startsWith (" /about" ) ? " font-bold" : " " } ` }
29
+ href =" /about"
30
+ >
31
+ About
32
+ </a >
33
+ </li >
20
34
<li ><a class =" hover:underline" href =" /wiki" >Wiki</a ></li >
21
35
<li ><a class =" hover:underline" href =" /#get-involved" >Community</a ></li >
22
36
</ul >
You can’t perform that action at this time.
0 commit comments