diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 70ad69a..0cb589a 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -492,6 +492,13 @@ export default function Home() { } } + 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]);