Skip to content

Commit fb46b63

Browse files
committed
🛠️ Fix some routing issues
1 parent b28067f commit fb46b63

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

src/routes/+layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const prerender = true;
55
/** @type {import('./$types').LayoutLoad} */
66
export const load = createKitDocsLoader({
77
sidebar: {
8-
'/home': '/home',
8+
'/': null,
99
'/docs': '/docs'
1010
}
1111
});

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
2727
const navbar: NavbarConfig = {
2828
links: [
29-
{ title: 'Home', slug: '/home', match: /\/home/ },
29+
{ title: 'Home', slug: '/', match: /\// },
3030
{ title: 'Documentation', slug: '/docs', match: /\/docs/ }
3131
]
3232
};

src/routes/+page.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/routes/home/+page.svelte renamed to src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
import { Button } from '@svelteness/kit-docs';
66
import { inView } from '$lib';
7-
import Carousel from '../../components/VideoCarousel.svelte';
7+
import Carousel from '../components/VideoCarousel.svelte';
88
99
let sidebar: HTMLElement | null;
1010
let main: HTMLElement | null;

0 commit comments

Comments
 (0)