diff --git a/src/Main.hs b/src/Main.hs index 9d66f9c..a8f09e7 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -43,7 +43,7 @@ main = defaultContext match "site/index.md" $ do - route $ setExtension "html" + route $ myRoute `composeRoutes` setExtension "html" compile $ do posts <- fmap (take 5) . recentFirst =<< loadAll "posts/*" let indexCtx = listField "posts" (postCtx tags) (return posts) <>