summaryrefslogtreecommitdiff
path: root/examples/simpleblog/hakyll.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simpleblog/hakyll.hs')
-rw-r--r--examples/simpleblog/hakyll.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simpleblog/hakyll.hs b/examples/simpleblog/hakyll.hs
index d97584b..46dbb14 100644
--- a/examples/simpleblog/hakyll.hs
+++ b/examples/simpleblog/hakyll.hs
@@ -19,7 +19,7 @@ main = hakyll $ do
-- Render index, including recent posts.
let recentPosts = renderAndConcat "templates/postitem.html" $ take 3 renderablePosts
renderChain ["index.html", "templates/default.html"] $
- createCustomPage "index.html" ("templates/postitem.html" : postPaths)
+ createCustomPage "index.html" ("templates/postitem.html" : take 3 postPaths)
[("title", Left "Home"), ("posts", Right recentPosts)]
-- Render all posts list.