From ef062ba44227f27092aaaa43e7c8720f4eb9b75c Mon Sep 17 00:00:00 2001 From: Cassidy Williams <1454517+cassidoo@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:54:40 -0600 Subject: [PATCH] Make it 5 posts on the homepage --- src/components/HomePosts.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomePosts.astro b/src/components/HomePosts.astro index 8912b81..84a1554 100644 --- a/src/components/HomePosts.astro +++ b/src/components/HomePosts.astro @@ -10,7 +10,7 @@ let posts = allPosts new Date(b.frontmatter.added).valueOf() - new Date(a.frontmatter.added).valueOf() ) - .slice(0, 3); + .slice(0, 5); //.sort(() => 0.5 - Math.random()).slice(0, 3); ---