Serum.PostList (serum v1.5.1) View Source
Defines a struct representing a list of blog posts.
Fields
tag
: Specifies by which tag the posts are filtered. Can benil
current_page
: Number of current pagemax_page
: Number of the last pagetitle
: Title of the listposts
: A list ofPost
structsurl
: Absolute URL of this list page in the websiteprev_url
: Absolute URL of the previous list page. Can benil
if this is the first pagenext_url
: Absolute URL of the next list page. Can benil
if this is the last pageoutput
: Destination path
Link to this section Summary
Link to this section Types
Specs
maybe_tag() :: Serum.Tag.t() | nil
Specs
Link to this section Functions
Specs
Specs
generate(maybe_tag(), [map()], Serum.Project.t()) :: Serum.Result.t([t()])
Specs
to_fragment(t()) :: Serum.Result.t(Serum.Fragment.t())