You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
645 B

5 months ago
5 months ago
5 months ago
  1. --------------------------------------------------------------------------------
  2. {-# LANGUAGE OverloadedStrings #-}
  3. import Data.Monoid (mappend)
  4. import Hakyll
  5. --------------------------------------------------------------------------------
  6. main :: IO ()
  7. main = hakyll $ do
  8. match "assets/css/*" $ do
  9. route idRoute
  10. compile compressCssCompiler
  11. match "index.md" $ do
  12. route $ setExtension "html"
  13. compile $ pandocCompiler
  14. >>= loadAndApplyTemplate "_layouts/default.html" defaultContext
  15. >>= relativizeUrls
  16. match "_layouts/*" $ compile templateBodyCompiler