A source page discovered by Astral.
Summary
Functions
Return the assigns a page and its layout render with.
Types
@type t() :: %Astral.Page{ assigns: %{required(atom()) => term()}, content: Astral.Content.t(), entry: Astral.Entry.t() | nil, output_path: String.t(), params: %{required(atom()) => term()}, route_path: String.t(), source_path: String.t() }
Functions
@spec assigns(t(), Astral.Site.t()) :: map()
Return the assigns a page and its layout render with.
:title is the page's frontmatter title, or nil, so layouts can read
@title whether a Markdown page or an .astral page renders them.