Safe Haskell | None |
---|
Provides an easy way to combine several items in a list. The applications are obvious:
- A post list on a blog
- An image list in a gallery
- A sitemap
- applyTemplateList :: Template -> Context a -> [Item a] -> Compiler String
- applyJoinTemplateList :: String -> Template -> Context a -> [Item a] -> Compiler String
- chronological :: [Item a] -> [Item a]
- recentFirst :: [Item a] -> [Item a]
Documentation
applyTemplateList :: Template -> Context a -> [Item a] -> Compiler StringSource
Generate a string of a listing of pages, after applying a template to each page.
applyJoinTemplateList :: String -> Template -> Context a -> [Item a] -> Compiler StringSource
Join a listing of pages with a string in between, after applying a template to each page.
chronological :: [Item a] -> [Item 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 :: [Item a] -> [Item a]Source
The reverse of chronological