A layout is used for its sibling page and all descendants. This layout would be used for src/routes/+page.svelte
, src/routes/about/+page.svelte
, etc.
The current page will be rendered in a slot.
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/lists">Lists</a>
</nav>
<slot></slot>