2011-02-10 11:29:40 +00:00
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
import Control.Arrow ((>>>))
|
|
|
|
import Control.Monad (forM_)
|
|
|
|
|
|
|
|
import Hakyll
|
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
main = hakyll $ do
|
|
|
|
route "css/*" idRoute
|
2011-02-23 12:49:14 +00:00
|
|
|
compile "css/*" compressCssCompiler
|
2011-02-10 11:29:40 +00:00
|
|
|
|
2011-02-23 12:49:14 +00:00
|
|
|
compile "templates/*" templateCompiler
|
2011-02-10 11:29:40 +00:00
|
|
|
|
|
|
|
forM_ ["about.rst", "index.markdown", "code.lhs"] $ \page -> do
|
|
|
|
route page $ setExtension "html"
|
2011-03-01 20:59:12 +00:00
|
|
|
compile page $ pageCompiler
|
2011-02-23 12:49:14 +00:00
|
|
|
>>> applyTemplateCompiler "templates/default.html"
|
|
|
|
>>> relativizeUrlsCompiler
|