{#each links as link, i (i)} {/each} {#if links.length < max}{/if}