Structured Data Demo

This page exists to exercise the page-level JSON-LD partials that ship with the theme, so their output is validated on every build rather than only when a real site happens to configure them.

Four schemas are emitted from the front matter above:

The site-level schemas (WebSite, Organization, LocalBusiness and Event) are configured in config/_default/params.toml and render on the home page.

View source on this page to inspect the generated application/ld+json blocks, or paste the URL into the Rich Results Test.

Frequently Asked Questions

Which Hugo version does this theme require?

Hugo 0.158.0 or later, extended edition.

Do I have to use npm to install the theme?

No. You can install it as an npm package, a Hugo Module, or a git submodule.

How do I enable structured data?

Add the matching block to your site params or page front matter.

Theme Glossary

Partial

A template fragment the theme reuses across layouts. Each JSON-LD block on this page comes from one.

Front Matter

The metadata block at the top of a content file, which is where every page-level schema on this page is configured.

Structured Data

Machine-readable markup, here JSON-LD, that states what a page is about in a vocabulary search engines read.

It is emitted from front matter, so a page declares what it is once.

JSON-LD

The serialisation this theme emits: a script block of JSON, kept apart from the markup it describes.