{#each pages as { title, id }}
{#if id === $store.currentPageName}
{/if}
store.setCurrentPage(id)}> {title}
{/each}