2010-01-19 19:42:16 +00:00
|
|
|
import Text.Hakyll (hakyll)
|
2009-12-29 18:09:11 +00:00
|
|
|
import Text.Hakyll.File (directory)
|
|
|
|
import Text.Hakyll.Render (css, static, renderChain)
|
2010-03-11 17:03:48 +00:00
|
|
|
import Text.Hakyll.CreateContext (createPage)
|
2009-12-29 18:09:11 +00:00
|
|
|
|
2010-03-11 17:03:48 +00:00
|
|
|
main = hakyll "http://example.com" $ do
|
2009-12-29 18:09:11 +00:00
|
|
|
directory css "css"
|
2010-01-24 18:38:23 +00:00
|
|
|
render "about.rst"
|
2009-12-29 18:09:11 +00:00
|
|
|
render "index.markdown"
|
2010-01-24 18:38:23 +00:00
|
|
|
render "code.lhs"
|
2010-03-30 17:25:22 +00:00
|
|
|
where
|
|
|
|
render = renderChain ["templates/default.html"]
|
|
|
|
. createPage
|