Skip to content

Overriding layout for root route #2998

Description

@javadude24

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

N/A

System Info

N/A

Severity

blocking all usage of SvelteKit

Additional Information

Need a solutiuon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions