Layout Groups with (group)
Group routes under a shared layout without adding a URL segment using parentheses.
Why Layout Groups
Sometimes you want a layout that applies to many routes without adding a URL segment.
Folder Convention
Wrap folder names in parentheses to create a layout group: (marketing).
src/routes/(marketing)/+layout.svelte
src/routes/(marketing)/about/+page.svelte
src/routes/(marketing)/pricing/+page.svelteAll lessons in this course
- Layout Groups with (group)
- Route-Level Layouts
- Breaking Out of a Layout with +page@route
- Shared Data Across Layouts