From 1bbd93461b6ba83e520bf8db831a4c20f93cf4bb Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 17 Dec 2012 17:06:51 +0100 Subject: saveSnapshot would only complicate stuff --- data/example/site.hs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'data') diff --git a/data/example/site.hs b/data/example/site.hs index 82a9f3e..78ee587 100644 --- a/data/example/site.hs +++ b/data/example/site.hs @@ -24,13 +24,10 @@ main = hakyll $ do match "posts/*" $ do route $ setExtension "html" - compile $ do - post <- pandocCompiler - saveSnapshot "content" post - return post - >>= loadAndApplyTemplate "templates/post.html" postCtx - >>= loadAndApplyTemplate "templates/default.html" postCtx - >>= relativizeUrls + compile $ pandocCompiler + >>= loadAndApplyTemplate "templates/post.html" postCtx + >>= loadAndApplyTemplate "templates/default.html" postCtx + >>= relativizeUrls match "archive.html" $ do route idRoute -- cgit v1.2.3