From f3d4596d269e4c454e23fb6d9bac21a41ef601b1 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 6 Mar 2026 15:39:39 +0000 Subject: [PATCH] Adjust ad placement to prevent them from appearing consecutively Modify the logic to insert advertisements every 8 articles instead of every 3, ensuring ads are spaced out appropriately within category pages. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 23852c00-4779-460a-9e0c-d09fee4b6c92 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 43ca32da-c849-4dd5-8ea3-60b8fe2bcf3a Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/23852c00-4779-460a-9e0c-d09fee4b6c92/ee1CXlO Replit-Helium-Checkpoint-Created: true --- client/src/pages/category.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/category.tsx b/client/src/pages/category.tsx index ace1815..5d71cbf 100644 --- a/client/src/pages/category.tsx +++ b/client/src/pages/category.tsx @@ -193,7 +193,7 @@ export default function CategoryPage() { , ]; - if ((index + 1) % 3 === 0) { + if ((index + 1) % 8 === 0) { items.push(); } return items;