Documentation
Writing content

Pages

Create pages with MDX files and frontmatter, and place them in your navigation.

Every page in a Velu site is an .mdx file with a block of YAML frontmatter at the top. The frontmatter sets the page's title and metadata; the Markdown and components below it are the page body.

Anatomy of a page

A page starts with frontmatter fenced by ---, followed by content.

---
title: "Authentication"
description: "Sign requests with an API key."
---
Every request to the Acme API needs an API key. This page shows how to create
one and send it.
## Create a key
...

title is required. description is recommended — it's used as the page's meta description, its social card summary, and the subtitle under the page heading.

The page hero

You don't write an H1 yourself. Velu renders the page hero automatically from the frontmatter: the title becomes the top-level heading and the description renders as the subtitle beneath it. Start your content with ## headings.

Supported frontmatter

These are the frontmatter fields Velu reads:

FieldTypePurpose
titlestring (required)Page heading and sidebar label.
descriptionstringSubtitle, meta description, and social summary.
hiddenbooleanBuild the page but keep it out of the sidebar.
noindexbooleanAsk crawlers not to index the page.
keywordsstring or arraySEO keyword terms.
canonicalstringCanonical URL for the page.
robotsstringRaw robots directive.
og:* / twitter:*stringOpen Graph and Twitter card overrides.

See SEO & metadata for how the SEO fields behave.

sidebarTitle, mode, tag, and icon are not supported as page frontmatter. The sidebar label always comes from title. If you need a shorter label in the sidebar, shorten the title.

Show a page in the navigation

Writing a file doesn't put it in the sidebar. Add the page's path — relative to the project root, without the .mdx extension — to a group's pages array in velu.json.

{
"group": "Get started",
"pages": ["index", "guides/authentication"]
}

The sidebar label is the page's title, and pages appear in the order you list them. See Navigation for products, tabs, groups, and anchors.

Hidden pages

A page with hidden: true still builds and is reachable by its URL, but it doesn't appear in the sidebar and you don't need to list it in pages. Use it for pages you link to directly — a beta feature, a landing page, or a page referenced only from another page.

---
title: "Early access"
hidden: true
---

Hidden pages are left out of search indexing unless you set seo.indexing to all.

Was this page helpful?