diff --git a/hakyll-bootstrap/Main.hs b/hakyll-bootstrap/Main.hs index 3516f25ff066c541e0e65d3a2e217fd1b2369f31..57774ac07b19768b381fea2f744866386bb72240 100644 --- a/hakyll-bootstrap/Main.hs +++ b/hakyll-bootstrap/Main.hs @@ -133,6 +133,12 @@ main = hakyllWith config $ do >>= applyAsTemplate (indexCtx posts) >>= relativizeUrls + match "pages/*" $ do + route $ setExtension "html" + compile $ getResourceBody + >>= loadAndApplyTemplate "templates/page.html" postCtx + >>= relativizeUrls + -- Read templates match "templates/*" $ compile templateCompiler