From 4a3aac547a04c78bf01b68d1b2296ae85aa0c6ea Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sat, 16 Mar 2013 12:53:54 +0200 Subject: `chronological` docs update `chronological` now respects metadata too and uses same method as dateField to get date for sorting. --- src/Hakyll/Web/Template/List.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Hakyll/Web/Template/List.hs b/src/Hakyll/Web/Template/List.hs index 8eadd53..f9ccc08 100644 --- a/src/Hakyll/Web/Template/List.hs +++ b/src/Hakyll/Web/Template/List.hs @@ -55,9 +55,8 @@ applyJoinTemplateList delimiter tpl context items = do -------------------------------------------------------------------------------- --- | Sort pages chronologically. This function assumes that the pages have a --- @year-month-day-title.extension@ naming scheme -- as is the convention in --- Hakyll. +-- | Sort pages chronologically. Uses the same method as 'dateField' for +-- extracting the date. chronological :: MonadMetadata m => [Item a] -> m [Item a] chronological = sortByM $ getItemUTC defaultTimeLocale . itemIdentifier -- cgit v1.2.3