diff --git a/site.hs b/site.hs index be041f8..7e5310c 100644 --- a/site.hs +++ b/site.hs @@ -43,8 +43,8 @@ main = hakyll $ do >>= relativizeUrls - match "index.html" $ do - route idRoute + match "index.rst" $ do + route $ setExtension "html" compile $ do posts <- recentFirst =<< loadAll "posts/*" let indexCtx = @@ -52,7 +52,7 @@ main = hakyll $ do constField "title" "Home" `mappend` defaultContext - getResourceBody + pandocCompiler >>= applyAsTemplate indexCtx >>= loadAndApplyTemplate "templates/default.html" indexCtx >>= relativizeUrls