Skip to content

Structured data

locales.<lang>.json_ld on every entry is a list of schema.org objects that are ready to use. It is [] when there are none. Each object has @context. Records in GET list and in a shortcode carry their own json_ld too.

What to do

  • Write each object as its own <script type="application/ld+json">, escaped for HTML.
  • A string that starts with /, but not with //, is an address on the site. Put your own origin in front of it.
  • Next to it, write your own Organization, WebSite, BreadcrumbList, the BlogPosting of a blog post, and FAQPage. For a record whose module has structured data, drop your own guess, such as Product.
  • A module with schema.offered_as means that the records are the plans of one product. Write that product once, with the json_ld of each record as its offers.

Where it comes from

  • The structured data of a module, filled in per record. It is set under Fields → the module → Structured data.
  • Anything a page added itself, under SEO.
  • Opening hours, as site.hours[].json_ld.

Also called: schema markup, rich snippets, JSON-LD, SEO markup.

Last changed