hakyll-3.2.6.2: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Web.Page.List

Description

Provides an easy way to combine several pages in a list. The applications are obvious:

  • A post list on a blog
  • An image list in a gallery
  • A sitemap

Synopsis

Documentation

setFieldPageListSource

Arguments

:: ([Page String] -> [Page String])

Determines list order

-> Identifier Template

Applied to every page

-> String

Key indicating which field should be set

-> Pattern (Page String)

Selects pages to include in the list

-> Compiler (Page String) (Page String)

Compiler that sets the page list in a field

Set a field of a page to a listing of pages

pageListCompilerSource

Arguments

:: ([Page String] -> [Page String])

Determine list order

-> Identifier Template

Applied to pages

-> Compiler [Page String] String

Compiles page list

Create a list of pages

chronological :: [Page a] -> [Page a]Source

Sort pages chronologically. This function assumes that the pages have a year-month-day-title.extension naming scheme -- as is the convention in Hakyll.

recentFirst :: [Page a] -> [Page a]Source

The reverse of chronological

sortByBaseName :: [Page a] -> [Page a]Source

Deprecated, see chronological