module

Plombir::Content

Class methods

discover(root : String, drafts : Bool = false) : Array(Page)

Walks rootcontent and returns every page, sorted by path so builds are deterministic.

pages = Plombir::Content.discover("/sites/blog")
pages.map(&.relative_path) # => ["index.md", "posts/hello.md"]
Source

Nested types