serum v1.2.0 Serum.Post View Source
Defines a struct representing a blog post page.
Fields
file
: Source pathtitle
: Post titledate
: Post date (formatted)raw_date
: Post date (erlang tuple style)tags
: A list of tagsurl
: Absolute URL of the blog post in the websitehtml
: Post contents converted into HTMLpreview
: Preview text of the postoutput
: Destination path
Link to this section Summary
Link to this section Types
Link to this type
t()
View Sourcet() :: %Serum.Post{ date: binary(), extras: %{optional(binary()) => binary()}, file: binary(), html: binary(), output: binary(), preview: binary(), raw_date: {:calendar.date(), :calendar.time()}, tags: [Serum.Tag.t()], template: binary(), title: binary(), url: binary() }
Link to this section Functions
Link to this function
to_fragment(post, templates)
View Sourceto_fragment(t(), map()) :: Serum.Result.t(Serum.Fragment.t())