hakyll-4.15.0.1: A static website compiler library
Safe HaskellNone
LanguageHaskell2010

Hakyll.Web.Paginate

Synopsis

Documentation

buildPaginateWith Source #

Arguments

:: MonadMetadata m 
=> ([Identifier] -> m [[Identifier]])

Group items into pages

-> Pattern

Select items to paginate

-> (PageNumber -> Identifier)

Identifiers for the pages

-> m Paginate 

paginateEvery :: Int -> [a] -> [[a]] Source #

paginateContext :: Paginate -> PageNumber -> Context a Source #

A default paginate context which provides the following keys:

  • firstPageNum
  • firstPageUrl
  • previousPageNum
  • previousPageUrl
  • nextPageNum
  • nextPageUrl
  • lastPageNum
  • lastPageUrl
  • currentPageNum
  • currentPageUrl
  • numPages
  • allPages