File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed
packages/site-kit/src/lib/nav Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { afterNavigate } from ' $app/navigation' ;
3
- import { page } from ' $app/state' ;
4
3
import { trap } from ' ../actions' ;
5
4
import { reduced_motion } from ' ../stores' ;
6
5
import { tick } from ' svelte' ;
10
9
import MobileSubMenu from ' ./MobileSubMenu.svelte' ;
11
10
import type { NavigationLink } from ' ../types' ;
12
11
import ModalOverlay from ' ../components/ModalOverlay.svelte' ;
13
- import { github_link } from ' ./Nav.svelte' ;
14
12
15
13
interface Props {
16
14
links: NavigationLink [];
150
148
<li ><a href =" /chat" >Discord</a ></li >
151
149
<li ><a href =" https://bsky.app/profile/svelte.dev" >Bluesky</a ></li >
152
150
<li >
153
- <a href ={ github_link ( page )} >GitHub</a >
151
+ <a href =" https://github.com/sveltejs " >GitHub</a >
154
152
</li >
155
153
</ul >
156
154
</div >
Original file line number Diff line number Diff line change 2
2
Top navigation bar for the application. It provides a slot for the left side, the right side, and the center.
3
3
-->
4
4
5
- <script lang =" ts" module >
6
- import type { Page } from ' @sveltejs/kit' ;
7
- export function github_link(page : Page ) {
8
- if (page .url .pathname .startsWith (' /tutorial' )) {
9
- return ` https://github.com/sveltejs/${page .params .slug ! .split (' /' )[0 ]} ` ;
10
- }
11
- if (page .url .pathname .startsWith (' /docs' )) {
12
- return ` https://github.com/sveltejs/${page .params .topic ! } ` ;
13
- }
14
- return ' https://github.com/sveltejs/svelte' ;
15
- }
16
- </script >
17
-
18
5
<script lang =" ts" >
19
6
import { overlay_open , on_this_page_open } from ' ../stores' ;
20
7
import { search } from ' ../state/search.svelte' ;
@@ -146,7 +133,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
146
133
<span data-icon =" bluesky" ></span >
147
134
</a >
148
135
149
- <a href ={ github_link ( page )} aria-label =" GitHub Repo " >
136
+ <a href =" https://github.com/sveltejs " aria-label =" GitHub Organization " >
150
137
<span data-icon =" github" ></span >
151
138
</a >
152
139
</div >
You can’t perform that action at this time.
0 commit comments