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
- setFieldPageList :: ([Page String] -> [Page String]) -> Identifier Template -> String -> Pattern (Page String) -> Compiler (Page String) (Page String)
- pageListCompiler :: ([Page String] -> [Page String]) -> Identifier Template -> Compiler [Page String] String
- chronological :: [Page a] -> [Page a]
- recentFirst :: [Page a] -> [Page a]
- sortByBaseName :: [Page a] -> [Page a]
Documentation
:: ([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
:: ([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