diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-03-16 13:15:04 -0700 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-03-16 13:15:04 -0700 |
commit | b287c8281ccbeba9741f0e5c94a9e92dc85c3edb (patch) | |
tree | 14d6a124d13f9131c3e265606b4444994baef4ad /src | |
parent | a72906095c1ea7b2d24ca4368f8165f15ac22059 (diff) | |
parent | 4a3aac547a04c78bf01b68d1b2296ae85aa0c6ea (diff) | |
download | hakyll-b287c8281ccbeba9741f0e5c94a9e92dc85c3edb.tar.gz |
Merge pull request #122 from simukis/chronological-update
chronological docs update
Diffstat (limited to 'src')
-rw-r--r-- | src/Hakyll/Web/Template/List.hs | 5 |
1 files changed, 2 insertions, 3 deletions
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 |