Serum.Page (serum v1.5.1) View Source

Defines a struct describing a normal page.

Fields

  • file: Source path
  • type: Type of source file
  • title: Page title
  • label: Page label
  • group: A group the page belongs to
  • order: Order of the page within its group
  • url: Absolute URL of the page within the website
  • output: Destination path
  • data: Source data

Link to this section Summary

Link to this section Types

Specs

t() :: %Serum.Page{
  data: binary(),
  extras: map(),
  file: binary(),
  group: binary(),
  label: binary(),
  order: integer(),
  output: binary(),
  template: binary() | nil,
  title: binary(),
  type: binary(),
  url: binary()
}

Link to this section Functions

Specs

compact(t()) :: map()
Link to this function

new(path, arg, data, proj)

View Source

Specs

new(binary(), {map(), map()}, binary(), map()) :: t()

Specs

to_fragment(t()) :: Serum.Result.t(Serum.Fragment.t())