View Source Serum.PostList (serum_md v1.6.5)
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
Summary
Types
@type maybe_tag() :: Serum.Tag.t() | nil
Functions
@spec generate(maybe_tag(), [map()], Serum.Project.t()) :: Serum.Result.t([t()])
@spec to_fragment(t()) :: Serum.Result.t(Serum.Fragment.t())