error in index route
This commit is contained in:
parent
089cce4f27
commit
091af5f9c7
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ main = do
|
||||||
defaultContext
|
defaultContext
|
||||||
|
|
||||||
match "index.md" $ do
|
match "index.md" $ do
|
||||||
route idRoute
|
route $ 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