Frontmatter Fields
ciderpress pages support standard Rspress frontmatter fields. Frontmatter is defined in YAML at the top of markdown files or injected via the defaults field on a Page / Workspace (renamed from the legacy frontmatter field — same type, different name).
See the Content concept for injection and inheritance patterns.
Standard fields
Layout values
Outline values
Aside values
Head format
The head field accepts an array of tuples. Each tuple is [tagName, attributes]:
Equivalent injected via Page.defaults in the config:
Custom fields
The two surfaces have different rules:
- YAML frontmatter in
.md/.mdxsource files — arbitrary keys are accepted and passed through to Rspress's page data object. Use these for metadata that theme components or plugins consume. - Config-side
defaults— validated against a.strict()Zod schema. Only the fields documented above are accepted; unknown keys fail at config load time with a clear error.
Custom fields are accessible in theme components via the page data object.