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 aa5bb4a commit 744c596Copy full SHA for 744c596
sites/svelte.dev/src/routes/docs/+layout.server.js
@@ -2,8 +2,8 @@ import { get_docs_data, get_docs_list } from '$lib/server/docs/index.js';
2
3
export const prerender = true;
4
5
-export function load() {
+export function load({ url }) {
6
return {
7
- sections: get_docs_list(get_docs_data())
+ sections: url.pathname === '/docs' ? [] : get_docs_list(get_docs_data())
8
};
9
}
0 commit comments