Sometimes sibling pages should share a layout the URL never shows. A directory wrapped in parentheses is a route group — it scopes a layout without contributing a URL segment:
src/routes
(marketing)
layout.ts wraps everything in the group
about
page.ts -> /about (not /marketing/about)
contact
page.ts -> /contact
page.ts -> /
Here /about and /contact render inside the marketing layout, while / doesn't — even though all three live at the same URL depth.
Two pages may not resolve to the same path through different groups; kit rejects that at scan time.
Your task
- In
src/routes/(marketing)/layout.ts, add aNavwith links to/,/about, and/contactabovechildren.
You're done when /about and /contact share the nav while / has none — the group scoped the layout without ever appearing in the URL.