1. Page Title (Required)
What it does: Sets the primary <h1> heading on the page, the browser tab title, and the default link label in the sidebar navigation.
Best Practice: Keep titles clear, action-oriented, and under 60 characters.
Every article in our Docs-as-Code knowledge base is built from two fundamental layers:
In traditional static site generators, authors must manually construct YAML syntax—where a single missing space or misplaced quote can crash the entire build. In Sveltia CMS, you interact with intuitive form fields that generate compliant frontmatter automatically.
Here is a breakdown of the key metadata fields you will see at the top of the Sveltia editor:
1. Page Title (Required)
What it does: Sets the primary <h1> heading on the page, the browser tab title, and the default link label in the sidebar navigation.
Best Practice: Keep titles clear, action-oriented, and under 60 characters.
2. Description (SEO & Search)
What it does: Powers search indexing in Pagefind, provides Google search engine meta tags, and generates social card previews when shared on Slack or LinkedIn.
Best Practice: Write 1–2 complete, engaging sentences summarizing the reader’s takeaway.
3. Sidebar Sort Order
What it does: Controls where this article appears in the left navigation tree. Lower numbers float to the top; higher numbers follow sequentially.
Best Practice: Use integers (1, 2, 3...) to structure a logical reading progression.
4. Sidebar Label & Hidden
What it does: Optionally overrides the title displayed in the sidebar (useful if the page title is long) or hides unlisted/draft guides from navigation altogether.
You can see how your visual form entries map to the underlying document code:
What you interact with in the CMS interface:
The Anatomy of an ArticleA plain-English breakdown of frontmatter metadata, SEO descriptions, and sidebar ordering.2falseHow Sveltia commits the file to GitHub behind the scenes:
---title: The Anatomy of an Articledescription: A plain-English breakdown of frontmatter metadata, SEO descriptions, and sidebar ordering.sidebar: order: 2---When users visit our documentation, they rely heavily on instant search (Cmd+K).
Our search engine (Pagefind) indexes both the page content and the frontmatter description. When a reader searches for a term:
If an article omits a description, search engines and internal search tools must guess an excerpt from the first paragraph, which may be an introductory sentence rather than a concise summary of the page topic.
The left sidebar in our documentation site is designed to present a logical, progressive learning journey:
order: 1 to introductory articles (e.g., Welcome, Overview, Getting Started).order: 2, order: 3, and order: 4 to procedural or progressive authoring guides.