diff --git a/attached_assets/image_1772474306256.png b/attached_assets/image_1772474306256.png new file mode 100644 index 0000000..b93652b Binary files /dev/null and b/attached_assets/image_1772474306256.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 0ad5a58..4d0a2d3 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -490,22 +490,6 @@ export default function Home() { } } - const totalRows = items.length / 4; - let adCount = 0; - const articleOnlyRows: number[] = []; - for (let row = 0; row < totalRows; row++) { - const rowStart = row * 4; - const rowItems = items.slice(rowStart, rowStart + 4); - if (rowItems.every((it) => it.type === "article")) { - articleOnlyRows.push(row); - } - } - for (let i = 0; i < articleOnlyRows.length && adCount < 4; i += 2) { - const row = articleOnlyRows[i]; - const rowStart = row * 4; - items[rowStart] = { type: "ad", key: `ad-${adCount}` }; - adCount++; - } return items; }, [shuffled, widgets]);