diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-12-17 17:06:51 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-12-17 17:06:51 +0100 |
commit | 1bbd93461b6ba83e520bf8db831a4c20f93cf4bb (patch) | |
tree | 45954341be34e2d42b647fe718ad986919f1909b | |
parent | 2c4e773089f317bf88f9d451e7fe26bf08ad3c2c (diff) | |
download | hakyll-1bbd93461b6ba83e520bf8db831a4c20f93cf4bb.tar.gz |
saveSnapshot would only complicate stuff
-rw-r--r-- | data/example/site.hs | 11 |
1 files changed, 4 insertions, 7 deletions
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 |