← Docs

Frontmatter

Control page metadata with YAML frontmatter at the top of your markdown files.

Basic Syntax

Add a YAML block between triple dashes at the very top of your file:

---
title: Getting Started
description: A beginner's guide to using GetPagemark
order: 1
---

# Getting Started

Your markdown content goes here...

Supported Fields

FieldTypeDescription
titlestringPage title. Used in the nav, browser tab, and HTML title tag.
descriptionstringPage description for SEO meta tags.
ordernumberSort position in navigation. Lower numbers appear first. Default: 999.

Title Fallback

If no title is set, GetPagemark generates one from the filename. getting-started.md becomes "Getting Started".

Ordering Example

# intro.md (order: 1)     → appears first
# setup.md (order: 2)     → appears second
# faq.md   (no order)     → appears last (default 999)