Create Your First Page
Now that your collection is registered, letβs create pages and understand what makes them work.
Anatomy of a Page
Every markdown page has two parts:
1. Frontmatter (YAML metadata)
---
title: "My First Page"
description: "A brief description for search engines and previews"
---
These two fields are required:
title: The page title (displays in browser tab, breadcrumbs, sidebar)description: Used for SEO and page metadata
2. Content (Markdown body)
# Heading
This is your content written in Markdown format.
## Subheading
You can use **bold**, _italic_, `code`, and more.
Creating Pages
Letβs create a few pages. Using your collection from the previous step (content/my-docs/):
Basic Structure
content/my-docs/
βββ guides/
β βββ hello.md # First page
β βββ installation.md # Installation guide
β βββ quick-start.md # Quick start guide
βββ concepts/
βββ terminology.md # Key terms
βββ architecture.md # System design
Create the pages:
content/my-docs/guides/installation.md
---
title: "Installation"
description: "How to install and configure"
---
# Installation
Installation steps go here...
content/my-docs/concepts/terminology.md
---
title: "Key Terminology"
description: "Understanding important terms used throughout"
---
# Key Terminology
Define important terms for your documentation...
Page Slug and URL
The file path becomes your page URL:
File: content/my-docs/guides/installation.md
Slug: guides/installation
URL: https://yourdocs.com/my-docs/guides/installation
Breaking this down:
content/my-docs/- collection directory (from config)guides/installation- becomes the slug/my-docs/- the route prefix (from config)
Optional Frontmatter
Besides the required fields, you can customize navigation:
---
title: "Installation"
description: "How to install"
# Override the sidebar label (if different from title)
navLabel: "Install"
# Add an icon (emoji or SVG reference)
navIcon: "β‘"
# Hide from navigation (page still accessible via URL)
navHidden: false
# Mark as work-in-progress
draft: false
---
Automatic Sidebar Discovery
Since you configured autoGenerated: true in your groups, these pages appear in the sidebar automatically, sorted alphabetically:
- Installation
- Quick Start
- (Any other pages you add)
To change the order, see Manual Configuration.
Next Steps
Now you know how to:
- β Create markdown files
- β Write frontmatter
- β Organize in folders
- β Have them appear automatically
Learn about: