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
FrontMatterincrates/moss-core/src/frontmatter_typed.rs. - Add a corresponding entry to
BUILTIN_FIELDSin this file.
Both files live in the same crate — add new fields to both in the same commit. Co-location and PR review are the enforcement mechanism.
§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.