Cherry.Content.Page (cherry v0.4.0)

Copy Markdown View Source

A page travelling through the build pipeline.

path is the output-relative destination (always forward-slashed); source is the content file it came from, relative to the site root. unlisted? pages are emitted but stay out of the sitemap (the unlisted CV: shareable by URL, announced nowhere).

Summary

Types

t()

@type t() :: %Cherry.Content.Page{
  content: binary(),
  path: String.t(),
  source: String.t(),
  unlisted?: boolean()
}