mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-09 12:47:44 +00:00
Card.svelte: #if tags before #each
This commit is contained in:
@@ -42,11 +42,13 @@
|
|||||||
/>{/if}
|
/>{/if}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="flex-grow">{description}</p>
|
<p class="flex-grow">{description}</p>
|
||||||
<div class="card__tags">
|
{#if tags}
|
||||||
{#each tags as tag}
|
<div class="card__tags">
|
||||||
<Tag title={tag} variant="blue" />
|
{#each tags as tag}
|
||||||
{/each}
|
<Tag title={tag} variant="blue" />
|
||||||
</div>
|
{/each}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{#if typeof stars !== 'undefined'}
|
{#if typeof stars !== 'undefined'}
|
||||||
<div class="card__bottom">
|
<div class="card__bottom">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user