The meta and link tags a page declares about itself, which component reads each one, and the site index you build from them.
Declare it in the head
A page states its author, dates, topics and license in <meta> and <link> tags. Components read those tags when they connect. You do not pass the same facts to each component as attributes.
The demo changes two tags and nothing else. The panel under the article is a <page-info auto>, which builds itself from the <head>. Open it to see the full record.
<head> <title>Booking a flu vaccination</title> <meta name="author" content="Tomas Okafor" /> <link rel="author" href="/team/tomas/" /> <meta name="last-modified" content="2026-11-03" /> <meta property="article:published_time" content="2026-06-18T00:00:00Z" /> <meta name="keywords" content="flu vaccine, appointments, pharmacy" /> <meta name="license" content="CC BY 4.0" /> <link rel="license" href="https://creativecommons.org/licenses/by/4.0/" /> <meta name="vb:provenance" content="human" /> <meta name="vb:review" content="fact-checked" /> <meta name="concept" content="vaccination" /></head><body> <article> ... <page-info auto></page-info> </article></body>
Where a standard name exists, the library reads the standard name: author, keywords, the Open Graph article properties, rel="license". Names that start with vb: are used only where no standard one fits.
Showing the metadata
Two components put these facts in front of the reader.
| Component | Shows | Source |
<page-stats> |
Reading time, word count and the last-modified date, in one line |
Counts the text of the element named by data-for. The date comes from last-modified. |
<page-info> |
A summary line (author, date, provenance badge) that opens to a panel with author, history, how the page was made, and topics |
With auto, the tags in the <head>. Without it, the markup you wrote inside. |
Two ways to use page-info
With the auto attribute the component builds its panel in the browser. That is the least markup, and the panel does not exist until the script runs.
Without auto, you write the panel as a <details> element inside <page-info>, usually from a template. It works before any script loads. The component then adds relative dates to each <time data-relative>, fills an element marked data-reading-time (counting the text inside any element marked data-signable), and sets the trust tier on the badge. Use this form when your build already knows the values. The <page-info> page has the full markup.
<page-info auto> reads the <head> once, when it connects. If a script changes a tag later, replace the element to render it again.
The site index
The components that list pages across a site (Finding Content) cannot read every page's <head>. They fetch one JSON file with a record per page. The library does not write that file. Your build does, from the same facts that go into the tags.
{ "url": "/guides/flu-vaccination/", "title": "Booking a flu vaccination", "author": "Tomas Okafor", "authorUrl": "/team/tomas/", "modified": "2026-11-03", "concepts": ["vaccination"], "provenance": "human", "review": "fact-checked", "status": "published", "signed": false}
The file is either an array of records or an object with a pages array. Each component uses a few fields and ignores the rest.
| Component | Fields it reads |
<author-index> | author, authorUrl, title, url |
<topic-map> | concepts, title, url, plus a separate vocabulary file |
<trust-filter> | provenance, review, status, signed, title, url |
<popularity-index> | title and provenance, to label the pages its analytics endpoint returns |
Generating the tags
Writing the tags by hand works for a few pages. Past that, generate them. This documentation site does it with a build plugin that turns front matter into tags, and a second that scans the built pages into /pages.json. Both plugins are part of this site's build, not of the vanilla-breeze package. They are short, and a good model for your own generator.
---title: "Booking a flu vaccination"author: "Tomas Okafor"authorUrl: "/team/tomas/"published: "2026-06-18"lastModified: "2026-11-03"keywords: ["flu vaccine", "appointments"]concepts: ["vaccination"]provenance: "human"review: "fact-checked"license: "CC BY 4.0"licenseUrl: "https://creativecommons.org/licenses/by/4.0/"---
The full list of tags, with the reasoning behind each name, is the meta-tag contract in the repository.