Skip to content

Commit

Permalink
fix: Limit recent tags displayed to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion committed May 9, 2024
1 parent abd6e28 commit 66018f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$: description = $t('pages.thoughts.description');
const MAX_TAGS = 12;
const MAX_TAGS = 6;
const tags =
data.posts?.reduce((acc, post) => {
Expand Down Expand Up @@ -62,7 +62,7 @@
>{#if i < MAX_TAGS && i < tags.size - 1},{/if}
</span>
{:else if i === MAX_TAGS}
<span class="text-md text-neutral-700 dark:text-neutral-200">...</span>
<span class="text-sm text-neutral-400 dark:text-neutral-300">...</span>
{/if}
{/each}
<span
Expand Down

0 comments on commit 66018f4

Please sign in to comment.