Update homepage article display to show more posts
Modify the slicing logic for articles displayed on the homepage to ensure more posts are visible below the main carousel. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 413891e8-d784-4bea-b9f5-91a5a68316b4 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8dd2a5c0-a2aa-40ef-80ff-a9023754026d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/413891e8-d784-4bea-b9f5-91a5a68316b4/RVXhOPb Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
5e03283560
commit
c6dc352a06
@ -316,11 +316,9 @@ export default function Home() {
|
||||
);
|
||||
}
|
||||
|
||||
const carouselUsed = Math.min(articles.length, 5 * 3);
|
||||
const remaining = articles.slice(carouselUsed);
|
||||
const row2Articles = remaining.slice(0, 4);
|
||||
const row3Articles = remaining.slice(4, 7);
|
||||
const row4Articles = remaining.slice(7, 10);
|
||||
const row2Articles = articles.slice(0, 4);
|
||||
const row3Articles = articles.slice(4, 7);
|
||||
const row4Articles = articles.slice(7, 10);
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user