View Source Serum.PostList (serum_md v1.6.8)
Defines a struct representing a list of blog posts.
Fields
tag: Specifies by which tag the posts are filtered. Can benilcurrent_page: Number of current pagemax_page: Number of the last pagetitle: Title of the listposts: A list ofPoststructsurl: Absolute URL of this list page in the websiteprev_url: Absolute URL of the previous list page. Can benilif this is the first pagenext_url: Absolute URL of the next list page. Can benilif 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())