On 27 November CogniPrep got a schema.org Article node on its content templates: provider hubs, test pages, employer guides, guide pages and the comparison page. The commit is small, 122 insertions and 22 deletions over ten files, and almost all of the weight sits in one function of 41 lines.

I have written before that our structured data follows one rule: no node may claim more than the page shows. This is that rule applied to a new node, and then checked against the live site instead of against the code.

The function

articleSchema takes a headline, an optional description, a path, an optional dateModified and an optional about. It returns the node. The detail that matters is in what it does not do:

return { '@context': 'https://schema.org', '@type': 'Article', headline, ...(description && { description }), url, image: `${BASE_URL}/opengraph-image.jpg`, ...(dateModified && { dateModified }), ...(about && { about }), author: COGNIPREP, publisher: { ...COGNIPREP, logo: { '@type': 'ImageObject', url: `${BASE_URL}/logo-light.png` } }, mainEntityOfPage: { '@type': 'WebPage', '@id': url }, }; 

A page that keeps no review date gets no dateModified. A page with no description gets none. The doc comment says it plainly: left out rather than guessed. The second of the two tests asserts exactly that, with not.toHaveProperty on three keys.

Author and publisher are both the organisation. That is deliberate, and it follows an earlier decision to name nobody rather than name a founder.

A type change as the enforcement

The hub hero component used to take heading: ReactNode. It now takes heading: string, with a comment that it is also the Article headline. A node cannot be used as a headline in JSON, so the compiler now refuses a hub whose heading is markup. Every hub gets its Article node from the hero, so no page.tsx repeats it and none can forget it.

That is the cheapest guarantee in the commit, and it is the reason the headline check below came out the way it did.

What the crawl found

The commit message tells you what was intended. To see what shipped I fetched all 1,155 URLs in the live sitemap and parsed every JSON-LD block.

Measure Pages
carry an Article node 931
carry two 0
with a dateModified 580
with a description 855
whose headline equals the visible h1 929

So 351 Article pages state no modified date, which is the "left out" rule doing what it says rather than a gap. The dates that are there cluster: 313 are 8 November, 78 are 16 November, 77 are 7 September, and the rest are a handful of dates in between.

All 931 carry the same image: the site's one social card. I am not claiming it is the right image for each page, only that it exists, and it does: it answers 200 with a JPEG.

The headline check is the one I wanted. 929 of 931 match the page's own h1 character for character. The two exceptions are the comparison page, whose headline is the long title and whose h1 is "How CogniPrep Compares", and the /cheating index, with the same pattern. Neither is wrong in a way a reader would feel, but both are the exact shape the rule exists to catch, and I only know because I counted.

The pages it does not reach

That leaves 224 pages with no Article, and they are not random:

  • 129 under /blogs. The blog has its own node type, BlogPosting, so these are covered by something more specific.
  • 43 under /interview, which use WebPage.
  • 24 Dutch and German pages (15 and 9). The localised templates were not part of this commit.
  • 7 of the 8 comparison pages.
  • The other 21: twelve single pages such as the home page, pricing, help, terms and privacy, where an Article would be wrong, plus nine index or practice-score pages.

The Dutch and German pages are the real gap. They are content pages in every sense, the commit touched English templates, and nothing in the repo says they were left out on purpose.

See it

No tool needed:

curl -s -A "Mozilla/5.0" https://cogniprep.app/games/aon | grep -o '"@type":"Article"' | wc -l 

That prints 1. Try /games/aon, /employers/hsbc and /comparison; each returns 1. Then try /nl/ixly, which returns 0. In a browser, "View source" and search for "Article": the headline will be the text of the h1 on the page.

What I would take from it

A shared builder only keeps a promise if it can say "I do not know" and mean it. The part of the function I trust most is the three lines that spread a field in only when it exists. The part I trusted least, before the crawl, was whether 931 pages would behave the same as the two in the test.