fix index creation
This commit is contained in:
parent
5c11de8399
commit
4525c7c08b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ main =
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
match "site/index.md" $ do
|
match "site/index.md" $ do
|
||||||
route $ setExtension "html"
|
route $ myRoute `composeRoutes` setExtension "html"
|
||||||
compile $ do
|
compile $ do
|
||||||
posts <- fmap (take 5) . recentFirst =<< loadAll "posts/*"
|
posts <- fmap (take 5) . recentFirst =<< loadAll "posts/*"
|
||||||
let indexCtx = listField "posts" (postCtx tags) (return posts) <>
|
let indexCtx = listField "posts" (postCtx tags) (return posts) <>
|
||||||
|
|
Loading…
Reference in a new issue