@@ -6,7 +6,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
6
6
import { overlay_open , on_this_page_open } from ' ../stores' ;
7
7
import { search } from ' ../state/search.svelte' ;
8
8
import Icon from ' ../components/Icon.svelte' ;
9
- import { page } from ' $app/stores ' ;
9
+ import { page } from ' $app/state ' ;
10
10
import ThemeToggle from ' ../components/ThemeToggle.svelte' ;
11
11
import MobileMenu from ' ./MobileMenu.svelte' ;
12
12
import type { NavigationLink } from ' ../types' ;
@@ -86,7 +86,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
86
86
<Dropdown >
87
87
<a
88
88
href ="/ {link .slug }"
89
- aria-current ={$ page .url .pathname .startsWith (` /${link .slug } ` ) ? ' page' : undefined }
89
+ aria-current ={page .url .pathname .startsWith (` /${link .slug } ` ) ? ' page' : undefined }
90
90
>
91
91
{link .title }
92
92
@@ -99,8 +99,8 @@ Top navigation bar for the application. It provides a slot for the left side, th
99
99
<a
100
100
class =" secondary"
101
101
href ={section .path }
102
- aria-current ={$ page .url .pathname === section .path ||
103
- $ page .url .pathname .startsWith (section .path ! )
102
+ aria-current ={page .url .pathname === section .path ||
103
+ page .url .pathname .startsWith (section .path ! )
104
104
? ' page'
105
105
: undefined }
106
106
>
@@ -113,7 +113,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
113
113
{:else }
114
114
<a
115
115
href ="/ {link .slug }"
116
- aria-current ={$ page .url .pathname .startsWith (` /${link .slug } ` ) ? ' page' : null }
116
+ aria-current ={page .url .pathname .startsWith (` /${link .slug } ` ) ? ' page' : null }
117
117
>
118
118
{link .title }
119
119
</a >
@@ -133,7 +133,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
133
133
<span data-icon =" bluesky" ></span >
134
134
</a >
135
135
136
- <a href =" https://github.com/sveltejs/svelte " aria-label =" GitHub Repo " >
136
+ <a href =" https://github.com/sveltejs" aria-label =" GitHub Organization " >
137
137
<span data-icon =" github" ></span >
138
138
</a >
139
139
</div >
@@ -169,7 +169,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
169
169
open = ! open ;
170
170
171
171
if (open ) {
172
- const segment = $ page .url .pathname .split (' /' )[1 ];
172
+ const segment = page .url .pathname .split (' /' )[1 ];
173
173
current = links .find ((link ) => link .slug === segment );
174
174
}
175
175
}}
0 commit comments