From 39ccca290b7ffb323aae7f265174806b9f587de4 Mon Sep 17 00:00:00 2001 From: kiosion Date: Thu, 9 May 2024 10:34:12 -0400 Subject: [PATCH] fix: Limit recent tags displayed to 6 --- svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte b/svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte index 6cc70972..43c8fb75 100644 --- a/svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte +++ b/svelte-app/src/routes/[[lang=lang]]/thoughts/+page.svelte @@ -13,7 +13,7 @@ $: description = $t('pages.thoughts.description'); - const MAX_TAGS = 12; + const MAX_TAGS = 6; const tags = data.posts?.reduce((acc, post) => { @@ -62,7 +62,7 @@ >{#if i < MAX_TAGS && i < tags.size - 1},{/if} {:else if i === MAX_TAGS} - ... + ... {/if} {/each}