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 =
|
home =
|
||||||
outputDir </> "index.html" %> \target -> do
|
outputDir </> "index.html" %> \target -> do
|
||||||
postPaths <- getPublishedPosts
|
postPaths <- getPublishedPosts
|
||||||
posts <-
|
posts <- sortOn (Ord.Down . postDate)
|
||||||
take 3
|
|
||||||
. sortOn (Ord.Down . postDate)
|
|
||||||
<$> forM postPaths readPost
|
<$> forM postPaths readPost
|
||||||
let posts' = map fromPost posts
|
let posts' = map fromPost posts
|
||||||
html <- applyTemplate "home.html" $ HM.singleton "posts" posts'
|
html <- applyTemplate "home.html" $ HM.singleton "posts" posts'
|
||||||
|
|
Loading…
Reference in a new issue