From 7b736f48dea775ef520dd8e44278226863b5e221 Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Mon, 24 Feb 2025 20:03:57 +0000 Subject: [PATCH 1/2] [Docs Site] Add "show more" button to changelogs --- src/pages/changelog/index.astro | 127 +++++++++++++++++++++++++++++--- 1 file changed, 116 insertions(+), 11 deletions(-) diff --git a/src/pages/changelog/index.astro b/src/pages/changelog/index.astro index af65fd74238eff7..dba1a0e881c2ac9 100644 --- a/src/pages/changelog/index.astro +++ b/src/pages/changelog/index.astro @@ -27,7 +27,7 @@ const props = {
{ - notes.map(async (entry) => { + notes.map(async (entry, idx) => { const date = format(entry.data.date, "MMM dd, yyyy"); const productIds = JSON.stringify( @@ -37,7 +37,11 @@ const props = { const { Content } = await render(entry); return ( -
+
= 10 ? "none" : ""}`} + >