struct
Creestal::Core::Resources::FrontMatter
- Creestal::Core::Resources::FrontMatter
- Struct
- Value
- Object
Included Modules
- YAML::Serializable
Defined in:
core/resources/page.crConstructors
Instance Method Summary
- #date : Time | Nil
- #draft : Bool | Nil
-
#layout : String | Nil
Stored as nilable so YAML::Serializable can deserialize an absent or explicit-null field without raising.
-
#resolved_layout : String
Returns the declared layout name, falling back to DEFAULT_LAYOUT when the field was absent or explicitly null in the front matter.
- #tags : Array(String) | Nil
- #title : String
Constructor Detail
Instance Method Detail
def layout : String | Nil
#
Stored as nilable so YAML::Serializable can deserialize an absent or explicit-null field without raising. Callers should use #resolved_layout, which always returns a non-nil String.
def resolved_layout : String
#
Returns the declared layout name, falling back to DEFAULT_LAYOUT when the field was absent or explicitly null in the front matter.