{-# LANGUAGE OverloadedStrings #-} import Hakyll main :: IO () main = hakyllWith config $ do match "/posts/*" $ do route $ setExtension ".html" compile $ do pandocCompiler >>= saveSnapshot "content" >>= loadAndApplyTemplate "templates/default.html" defaultContext >>= relativizeUrls config :: Configuration config = defaultConfiguration