From 641ea62068ba35aac1935ef5e502c86c932f869c Mon Sep 17 00:00:00 2001 From: B SIMAK AHMED <1NZ24CS030@newhorizonindia.edu> Date: Tue, 13 Oct 2026 15:20:53 +0530 Subject: [PATCH] Show only three prioritized projects on homepage --- src/routes/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 9ff6663..4859933 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -71,9 +71,12 @@ function Home() { return 99; }; - return (data ?? []) - .filter((project) => project.featured || priority(project) < 99) - .sort((a, b) => priority(a) - priority(b) || (a.order_index ?? 0) - (b.order_index ?? 0)); + const prioritized = (data ?? []) + .filter((project) => priority(project) < 99) + .sort((a, b) => priority(a) - priority(b)); + + // The homepage's Selected Work section should show exactly these three projects. + return prioritized; }, });