Prevent specific content types from appearing on the same page row
Ensure that "news" and "breaking" widgets, as well as "gallery" and "gallery2" widgets, are never placed in the same row. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: e527b2d8-c289-4a20-b45b-6f81f15b49c3 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/0ZGabQy Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
20f96fd01e
commit
a8f10616a4
@ -467,7 +467,8 @@ export default function Home() {
|
||||
valid = true;
|
||||
for (let i = 0; i < w.length - 1; i += 2) {
|
||||
const pair = [w[i].id, w[i + 1]?.id];
|
||||
if (pair.includes("news") && pair.includes("breaking")) {
|
||||
if ((pair.includes("news") && pair.includes("breaking")) ||
|
||||
(pair.includes("gallery") && pair.includes("gallery2"))) {
|
||||
valid = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user