From 1614e1ea3804d0131bb28312189490c61e4187a6 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 25 Aug 2015 22:55:39 +1000 Subject: [PATCH] Changed index.html to index.rst --- site.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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