have home have a full list of posts
This commit is contained in:
parent
11f0f80daf
commit
189e8e09e6
1 changed files with 1 additions and 3 deletions
|
@ -158,9 +158,7 @@ home :: Rules ()
|
|||
home =
|
||||
outputDir </> "index.html" %> \target -> do
|
||||
postPaths <- getPublishedPosts
|
||||
posts <-
|
||||
take 3
|
||||
. sortOn (Ord.Down . postDate)
|
||||
posts <- sortOn (Ord.Down . postDate)
|
||||
<$> forM postPaths readPost
|
||||
let posts' = map fromPost posts
|
||||
html <- applyTemplate "home.html" $ HM.singleton "posts" posts'
|
||||
|
|
Loading…
Reference in a new issue