Display all blog articles below the carousel section

Update the home page component to display all articles in a grid layout, rather than only a subset.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 9a38d40e-e66a-495e-b7d1-09d2609085a1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/0ZGabQy
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic 2026-02-28 21:58:37 +00:00
parent 2f3e864bf4
commit 6aa729090f
2 changed files with 3 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 KiB

View File

@ -378,10 +378,9 @@ export default function Home() {
); );
} }
const carouselEnd = Math.min(9, articles.length); const row2 = articles.slice(0, 2);
const row2 = articles.slice(carouselEnd, carouselEnd + 2); const row3 = articles.slice(2, 4);
const row3 = articles.slice(carouselEnd + 2, carouselEnd + 4); const remaining = articles.slice(4);
const remaining = articles.slice(carouselEnd + 4);
const rows: Article[][] = []; const rows: Article[][] = [];
for (let i = 0; i < remaining.length; i += 4) { for (let i = 0; i < remaining.length; i += 4) {
rows.push(remaining.slice(i, i + 4)); rows.push(remaining.slice(i, i + 4));