summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-12-17 17:06:51 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-12-17 17:06:51 +0100
commit1bbd93461b6ba83e520bf8db831a4c20f93cf4bb (patch)
tree45954341be34e2d42b647fe718ad986919f1909b
parent2c4e773089f317bf88f9d451e7fe26bf08ad3c2c (diff)
downloadhakyll-1bbd93461b6ba83e520bf8db831a4c20f93cf4bb.tar.gz
saveSnapshot would only complicate stuff
-rw-r--r--data/example/site.hs11
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