struct

Plombir::Content::Collection

Inherits Struct < Value < Object

Constructors

new(name : String, documents : Array(Document))
Source

Class methods

all(root : String, drafts : Bool = false, patterns : Hash(String, String) = {} of String => String) : Array(Collection)

Discovers, parses, and groups every page under content/. Drafts (draft: true or _-prefixed) are skipped unless drafts is true. Collection permalink patterns expand like the build; duplicate routes raise Router::Conflict.

Source
collection_name(relative_path : String) : String

First path segment, or "root" for top-level pages.

Source

Instance methods

documents
Source
name
Source