summaryrefslogtreecommitdiff
path: root/examples/brochure/hakyll.hs
blob: 93a23935799b9910464da0f7133189946221a005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Text.Hakyll (hakyll)
import Text.Hakyll.File (directory)
import Text.Hakyll.Render (css, static, renderChain)
import Text.Hakyll.CreateContext (createPage)

main = hakyll "http://example.com" $ do
    directory css "css"
    render "about.rst"
    render "index.markdown"
    render "code.lhs"
    where render = renderChain ["templates/default.html"]
                 . createPage