{ if (type == 'image') showImage(bestImageURL(post, false, -1)) }} role={type == 'image' ? 'button' : 'link'} tabindex="0" class="cursor-pointer h-full block" >
{#if post.thumbnail_url || type == 'image'} {@const thumbnail = post.thumbnail_url != undefined && type != 'image'}
{#each ['webp'] as format}
{/each}
{#if type != 'image'}
{/if} {:else}
{/if}
{#if blur}
{/if}
{#if post.alt_text}
modal({ title: 'Alt text', body: post.alt_text })} aria-label="Alt text" class="absolute bottom-0 left-0 z-20 m-1" size="square-md" rounding="xl" >
{/if}