on master help sign in
`chronological` docs update

`chronological` now respects metadata too and uses same method as dateField to get date for sorting.

commit4a3aac547a04c78bf01b68d1b2296ae85aa0c6ea authorSimonas Kazlauskas <git@kazlauskas.me> dateSat 16 Mar 2013, 12:53 (14 years ago) parenta729060
1 file changed+2−3
src/Hakyll/Web/Template/List.hs+2−3
src/Hakyll/Web/Template/List.hs+2−3
@@ -55,9 +55,8 @@ applyJoinTemplateList delimiter tpl context items = do
5555
5656
5757--------------------------------------------------------------------------------
58−-- | Sort pages chronologically. This function assumes that the pages have a
59−-- @year-month-day-title.extension@ naming scheme -- as is the convention in
60−-- Hakyll.
58+-- | Sort pages chronologically. Uses the same method as 'dateField' for
59+-- extracting the date.
6160chronological :: MonadMetadata m => [Item a] -> m [Item a]
6261chronological =
6362 sortByM $ getItemUTC defaultTimeLocale . itemIdentifier