Pages
Pages
Declare each Page's title, description, tagline, and layout with front matter properties.
A Page is a Markdown document with MDC components. Its front matter, the YAML block at the top of the document, declares the metadata the Portal uses to render the Page: its SEO metadata, its layout, and its built-in page header, when supported by the layout.
---
title: "Getting started"
description: "Everything you need to make your first request."
tagline: "Quickstart"
layout: "guide"
---
Every Page declares title and description. Both are used as the Page's SEO metadata.
title is the Page's title. Layouts with a built-in page header render it as the Page's h1.description is a short summary of the Page. Layouts with a built-in page header render it below the title.| Property | Description |
|---|---|
layout | Selects one of the built-in layouts. When omitted, the Page renders with the custom layout. |
tagline | A short label rendered above the title. Only layouts with a built-in page header render it. Omit it and no label renders. |
layout-options | Replaces the layout's sidebars and page header with Snippets, or hides a region by setting it to false. See Layout Options. |
image | Overrides the og:image used when the Page is shared. Accepts a URL string, or an object with url, alt, and optional width and height. When omitted, the Portal generates an og image from the Page's title and description. |
---
image:
url: https://example.com/images/my-page.png
alt: A diagram of the request flow
width: 600
height: 400
---
Every front matter property is available in the Page's body through $doc data binding, including custom properties you define. See Binding data in markdown.
---
title: "Title of the page"
---
The title of this page is "{{ $doc.title }}"