Skip to content

Commit

Permalink
saveSnapshot would only complicate stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Dec 17, 2012
1 parent 2c4e773 commit 1bbd934
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions data/example/site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bbd934

Please sign in to comment.