struct

Creestal::Core::Resources::FrontMatter

Inherits YAML::Serializable < Struct < Value < Object

Constructors

new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

date
Source
draft
Source
layout

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.

Source
resolved_layout

Returns the declared layout name, falling back to DEFAULT_LAYOUT when the field was absent or explicitly null in the front matter.

Source
tags
Source
title
Source