Skip to content

Comments

fix: remove malformed bare NewsArticle from JSON-LD in all 14 news index files#498

Merged
pethers merged 2 commits intonews-realtime/2026-02-24-1030-4fb2b8fdc2e10b86from
copilot/sub-pr-485
Feb 24, 2026
Merged

fix: remove malformed bare NewsArticle from JSON-LD in all 14 news index files#498
pethers merged 2 commits intonews-realtime/2026-02-24-1030-4fb2b8fdc2e10b86from
copilot/sub-pr-485

Conversation

Copy link
Contributor

Copilot AI commented Feb 24, 2026

A duplicate bare NewsArticle object was injected between ListItem position 2 and position 3 in all 14 news index files during the merge conflict resolution, producing invalid JSON-LD that breaks structured data parsing by search engines.

Root cause

The malformed block lacked a ListItem wrapper and left a spurious trailing comma on the item field of position 2:

// BEFORE (invalid)
        "item": {
          "@type": "NewsArticle", ...
          }
        },          ← trailing comma implies more properties follow
  {                 ← bare object, no "ListItem" wrapper, wrong indent
          "@type": "NewsArticle", ...  ← duplicate of position 3 article
        }
      },
      {
        "@type": "ListItem",
        "position": 3, ...
// AFTER (valid)
        "item": {
          "@type": "NewsArticle", ...
          }
        }
      },
      {
        "@type": "ListItem",
        "position": 3, ...

Changes

  • Removed the malformed bare NewsArticle block and fixed the trailing comma in all 14 language index files (index.html, index_ar, index_da, index_de, index_es, index_fi, index_fr, index_he, index_ja, index_ko, index_nl, index_no, index_sv, index_zh)
  • All 14 files now parse as valid JSON-LD with 11 properly nested ListItem entries each

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add five propositions on civilian defence and psychological violence fix: remove malformed bare NewsArticle from JSON-LD in all 14 news index files Feb 24, 2026
@pethers pethers marked this pull request as ready for review February 24, 2026 14:11
@pethers pethers merged commit b258ea9 into news-realtime/2026-02-24-1030-4fb2b8fdc2e10b86 Feb 24, 2026
@pethers pethers deleted the copilot/sub-pr-485 branch February 24, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants