How to add structured data (LD+JSON) schema to your pages

This demo showcases how schema.org structured data is added to every page on the site — enabling Google Search to generate rich results for articles, events, FAQ pages, and more. Two approaches are demonstrated: schema included in the page, and schema assembled automatically during page decoration based on page content and blocks.

Why This Matters

The challenge: Search engines can read the text on a page, but they can't reliably infer what type of content it represents — whether it's an article, an upcoming event, or a Q&A page. Without that signal, pages compete for generic search rankings and miss eligibility for Google's rich results.

The solution: Schema.org structured data in LD+JSON format tells search engines exactly what a page is and what it contains. Google uses this to surface rich results — event cards with dates and locations, article bylines, FAQ panels — directly in search results, before a user even clicks through.

Why structured data matters for your site:

Real-world use cases:

Demo

This demo highlights both approaches — schema included in the page on event pages, and schema assembled during decoration on article and FAQ pages.

  1. Open an event page: https://demo.bbird.live/events/career-spotlight-panel
  2. View page source (Ctrl+U / Cmd+U) — find <script type="application/ld+json"> in the <head> with a complete Event schema already present, including name, startDate, location, and address. This schema is part of the page itself — included via the json-ld metadata property, populated from the event data (title, description, occurrenceDate, location, address).
  3. Open an article page: https://demo.bbird.live/learn/fire/fire-flavours
  4. Open DevTools → Elements — find the <script type="application/ld+json"> assembled by schema.js during page decoration, containing an Article schema built from the page's existing metadata: title, description, author, date, og:image, and keywords.
  5. Validate either page at https://search.google.com/test/rich-results — show rich result eligibility for the detected schema type.

How it works

Key Points