From b10690e123c917fe2097721a806951f207c21b6f Mon Sep 17 00:00:00 2001 From: Nicholai Date: Thu, 18 Dec 2025 14:40:58 -0700 Subject: [PATCH] Remove Editor's Picks section from blog index page - Disabled editor picks logic and UI - Simplified page rendering by removing unused code - Updated comments to reflect removal of the section --- src/pages/blog/index.astro | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 3200942..1ae8937 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -16,9 +16,9 @@ const allPosts = (await getCollection('blog')).sort( const featuredPost = allPosts.find((post) => post.data.featured) || allPosts[0]; // Editor's picks: next 3 posts after featured (excluding the featured one) -const editorPicks = allPosts - .filter((post) => post.id !== featuredPost?.id) - .slice(0, 3); +//const editorPicks = allPosts +// .filter((post) => post.id !== featuredPost?.id) +// .slice(0, 3); // Latest posts: all posts for the filterable grid const latestPosts = allPosts; @@ -163,38 +163,6 @@ const categories = [...new Set(allPosts.map((post) => post.data.category).filter )} - - {editorPicks.length > 0 && ( -
-
- - /// EDITOR'S PICKS - - -
- -
- {editorPicks.map((post, index) => ( -
- -
- ))} -
-
- )} - - -
-