ContentData #

One page a content loader returns.

Fields #

urlstring

Route path of the page.

frontmatterRecord<string, unknown>

The frontmatter of the page.

srcoptionalstring

The Markdown source of the page. Only there when includeSrc is on.

htmloptionalstring

The page body rendered to HTML. Only there when render is on.

excerptoptionalstring

The excerpt of the page. Only there when excerpt is on.

Full type signature
TypeScript
interface ContentData {
  url: string
  frontmatter: Record<string, unknown>
  src?: string
  html?: string
  excerpt?: string
}

Edit this page

Comments