Skip to main content
Set page metadata with the Head component: title, description, Open Graph and Twitter cards, favicons, fonts, and JSON-LD. Multiple Head components in the tree merge; page-level tags override layout-level tags for duplicate keys. Examples below use the default app router. Set router: "pages" in veryfront.config.ts to switch to the pages router.

Prerequisites

Basic metadata

The Head component renders its children into the document’s <head>. When multiple Head components are present (e.g., in a layout and a page), they merge: page-level tags override layout-level tags for duplicate keys.

Open Graph

Favicon and icons

Fonts

Load Google Fonts with the GoogleFonts component:

Structured data (JSON-LD)

Per-page metadata in layouts

Set defaults in the layout, override in pages:
The about page overrides both the title and description from the layout.

MDX frontmatter

MDX pages can set metadata via frontmatter:
The framework automatically injects title and description from frontmatter into the <head>.

Verify it worked

Open the page in the browser and inspect the document <head>. Confirm: