serum v0.13.0 Serum.Post
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()
t()
t() :: %Serum.Post{
date: binary(),
file: binary(),
html: binary(),
output: binary(),
preview: binary(),
raw_date: {:calendar.date(), :calendar.time()},
tags: [Serum.Tag.t()],
title: binary(),
url: binary()
}
t() :: %Serum.Post{ date: binary(), file: binary(), html: binary(), output: binary(), preview: binary(), raw_date: {:calendar.date(), :calendar.time()}, tags: [Serum.Tag.t()], title: binary(), url: binary() }
Link to this section Functions
Link to this function
compact(post)
Link to this function
to_fragment(post, proj)
to_fragment(post, proj)
to_fragment(t(), map()) :: Serum.Result.t(Serum.Fragment.t())
to_fragment(t(), map()) :: Serum.Result.t(Serum.Fragment.t())
Link to this function
to_html(post, metadata, proj)
to_html(post, metadata, proj)
to_html(t(), map(), map()) :: Serum.Result.t(binary())
to_html(t(), map(), map()) :: Serum.Result.t(binary())