Dökkt Ljóst

Page metadata

Added in Wagtail 8.1

Note: Wagtail supports page metada checks as of version 8.1.

What is page metadata

Wagtail pages tend to contain a lot of invisible metadata in the HTML, which helps browsers and bots with context about the page content. Wagtail comes with built-in support for page titles and descriptions used by search engines and other crawlers, and most sites also include more advanced kinds of metadata.

Common examples include Schema.org to denote the semantics of page content, and the OpenGraph protocol to target social media platforms specifically.

How we calculate metadata length

Since metadata ends up in all sorts of places, we can’t just preview exactly how it might render. Instead, we provide a length check to understand how your content would fit within the allowed budgets for titles and descriptions.

  • For page titles, Wagtail checks length in pixels and characters. With a recommended maximum of 580 pixels or 60 characters, matching how search results would work.
  • For descriptions, we calculate length in characters, with a recommended maximum of 160.

Those are recommendations, not hard limits. On occasion, metadata can be much shorter or bigger than the recommended values.

In the CMS

This functionality is available from the Content checks panel, and in the userbar Checks dialog:

Checks userbar dialog with metadata viewer opened to view all OpenGraph meta tags

In both cases, click View more meta tags to reveal a preview of all other meta tags that are relevant to how the page will appear for external systems like bots, crawlers, AI agents.