Overriding layout for root route #2999
Unanswered
javadude24
asked this question in
Q&A
Replies: 1 comment
-
It would be great to add an index.reset.svelte feature to svelte kit. Related issue: #2694 Without this feature, the only way I can see is: routes/__layout.svelte
routes/index.svelte
routes/about.svelte
Results
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I’m building a site, using sveltekit and plan to have a home page (via index.svelte) route with no layout. However, all other pages will have a common layout, so I plan to define __layout.svelte in routes directory. How do I reset the layout for index.svelte. I tried to define a directory ‘index’ with index.svelte and __layout.reset.svelte files within, but that does not work. Please advise a solution.
Reproduction
Yes
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
Need a solutiuon
Beta Was this translation helpful? Give feedback.
All reactions