{-# LANGUAGE OverloadedStrings #-} import Hakyll ( Configuration(..) , compile , compressCssCompiler , defaultConfiguration , defaultContext , hakyllWith , idRoute , loadAndApplyTemplate , match , pandocCompiler , relativizeUrls , route , setExtension , templateBodyCompiler ) config :: Configuration config = defaultConfiguration {deployCommand = "rsync -rv _site/ debnode:portfolio"} main :: IO () main = hakyllWith config $ do match "index.md" $ do route $ setExtension "html" compile $ pandocCompiler >>= loadAndApplyTemplate "templates/default.html" defaultContext >>= relativizeUrls match "css/*" $ do route idRoute compile compressCssCompiler match "templates/*" $ compile templateBodyCompiler