Add an additional article to the bottom section of the homepage
Modify the filtering logic to include a third article in the bottom section of the homepage. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 0cb02896-b3b7-47d7-8b49-cfee09701751 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/nFw7xof Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
2d010f73a4
commit
076589492f
BIN
attached_assets/image_1772472626984.png
Normal file
BIN
attached_assets/image_1772472626984.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 422 KiB |
@ -537,7 +537,7 @@ export default function Home() {
|
|||||||
...articles.slice(0, 9).map((a) => a.id),
|
...articles.slice(0, 9).map((a) => a.id),
|
||||||
...widePickedArticles.map((a) => a.id),
|
...widePickedArticles.map((a) => a.id),
|
||||||
]);
|
]);
|
||||||
return articles.filter((a) => !usedIds.has(a.id)).slice(0, 2);
|
return articles.filter((a) => !usedIds.has(a.id)).slice(0, 3);
|
||||||
}, [articles, widePickedArticles]);
|
}, [articles, widePickedArticles]);
|
||||||
|
|
||||||
const bottomSection = useMemo(() => {
|
const bottomSection = useMemo(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user