The current page is passed to the layout as a children snippet.
A layout is used for its sibling page and all descendants. This navigation appears on the home, about, and lists pages.
Render the snippet to display the current page.
<script>
let { children } = $props();
</script>
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/lists">Lists</a>
</nav>
{@render children()}