Expand description
Builtin frontmatter field definitions.
This module is the single source of truth for all frontmatter fields
that moss recognizes. The schema returned by [schema::builtin_schema()]
is generated from the BUILTIN_FIELDS table, not from a hand-maintained
JSON file. This eliminates drift between the build pipeline’s FrontMatter
struct and the editor/validation schema.
§Adding a new field
- Add the field to the
FrontMatterstruct insrc-tauri/src/build/generator/markdown.rs. - Add a corresponding entry to
BUILTIN_FIELDSin this file. - Run
cargo test— the sync test inmarkdown.rswill fail if you forget either side.
§skip_schema fields
Fields with skip_schema: true exist in the FrontMatter struct (the build
pipeline uses them) but are not exposed in the editor form or validation
schema. These are typically site-level config fields read only from the
homepage, auto-generated fields, or fields that will migrate to plugin-
contributed schemas.
Structs§
- Builtin
Field - A builtin frontmatter field definition.
Constants§
- BUILTIN_
FIELDS - All builtin frontmatter fields recognized by moss.