diff options
Diffstat (limited to 'data/example')
-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 |