{#each items as { href, title }, i (i)} {@const isActive = $page.url.pathname === href} {/each}