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.

23 lines
689B

  1. --------------------------------------------------------------------------------
  2. {-# LANGUAGE OverloadedStrings #-}
  3. import Data.Monoid (mappend)
  4. import Hakyll
  5. --------------------------------------------------------------------------------
  6. main :: IO ()
  7. main = hakyll $ do
  8. match "css/*" $ do
  9. route idRoute
  10. compile compressCssCompiler
  11. match "index.html" $ do
  12. route idRoute
  13. compile $ do
  14. getResourceBody
  15. >>= applyAsTemplate indexCtx
  16. >>= loadAndApplyTemplate "templates/default.html" indexCtx
  17. >>= relativizeUrls
  18. match "templates/*" $ compile templateBodyCompiler