We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda251e commit 2e91d80Copy full SHA for 2e91d80
apps/svelte.dev/src/routes/+layout.server.ts
@@ -28,7 +28,11 @@ const nav_links: NavigationLink[] = [
28
title: section.metadata.title,
29
sections: section.children.map((page) => ({
30
title: page.metadata.title,
31
- path: '/tutorial/' + page.slug.split('/').pop()
+ path:
32
+ '/tutorial/' +
33
+ (page.slug.includes('sveltekit/') ? 'kit' : 'svelte') +
34
+ '/' +
35
+ page.slug.split('/').pop()
36
}))
37
38
0 commit comments