frontmatter.md

Frontmatter

Markdown

Frontmatter

Files may start with simple YAML-style frontmatter:

---
title: My Note
publish: true
---

Recognized fields:

FieldEffect
titleSets the page title. Without it, Onyx uses the first # Heading, then the filename.
publish: falseExcludes the note from the build.
draft: trueExcludes the note from the build.

Frontmatter parsing is intentionally small: key: value lines between opening and closing --- markers.

See Configuration for site-wide settings in onyx.ini.