diff --git a/attached_assets/image_1772713371094.png b/attached_assets/image_1772713371094.png new file mode 100644 index 0000000..066df54 Binary files /dev/null and b/attached_assets/image_1772713371094.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 231679a..9b55cc2 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -548,27 +548,6 @@ export default function Home() { } } - const totalRows = items.length / 4; - const adRows = [1, 3, 5, 7, 9, 11, 13]; - let adCount = 0; - for (const row of adRows) { - if (row >= totalRows) continue; - const rowStart = row * 4; - for (let col = 3; col >= 0; col--) { - if (items[rowStart + col] && items[rowStart + col].type === "article") { - items[rowStart + col] = { type: "ad", key: `ad-${adCount++}` }; - break; - } - } - } - - if (4 < totalRows) { - const rowStart = 4 * 4; - if (items[rowStart + 1] && items[rowStart + 1].type === "article") { - items[rowStart + 1] = { type: "ad", key: `ad-${adCount++}` }; - } - } - return items; }, [shuffled, widgets]); @@ -685,11 +664,9 @@ export default function Home() { {row.map((item) => item.type === "widget" ?