Skip to main content

Interface: DocumentMeta

Defined in: packages/core/src/document.types.ts:7

What a page says about itself. compile copies it into the artifact unchanged and Nubbin renders none of it — a framework binding decides what becomes a <title> or a meta tag.

Properties

canonical?

optional canonical?: string

Defined in: packages/core/src/document.types.ts:15

The page's canonical URL, absolute. @nubbin/next puts it where Next reads one.


description?

optional description?: string

Defined in: packages/core/src/document.types.ts:11

The page's description, for a meta tag.


robots?

optional robots?: string

Defined in: packages/core/src/document.types.ts:13

A robots directive, verbatim — noindex, noindex, nofollow. Absent leaves it to the app's default.


title

title: string

Defined in: packages/core/src/document.types.ts:9

The page's title. The one required field: every page is named, in an editor as much as in a tab.