{#each pages as page (page.key)} {#if page.type === 'ellipsis'}
...
{:else} {page.value} {/if} {/each}