fix(site-2): docs redirect page (#8718)

pull/8731/head
Puru Vijay 2 years ago committed by GitHub
parent aa5bb4a3db
commit 744c596c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,8 @@ import { get_docs_data, get_docs_list } from '$lib/server/docs/index.js';
export const prerender = true;
export function load() {
export function load({ url }) {
return {
sections: get_docs_list(get_docs_data())
sections: url.pathname === '/docs' ? [] : get_docs_list(get_docs_data())
};
}

Loading…
Cancel
Save