diff options
Diffstat (limited to 'examples/brochure')
-rw-r--r-- | examples/brochure/hakyll.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/brochure/hakyll.hs b/examples/brochure/hakyll.hs index c550202..93a2393 100644 --- a/examples/brochure/hakyll.hs +++ b/examples/brochure/hakyll.hs @@ -1,11 +1,12 @@ import Text.Hakyll (hakyll) import Text.Hakyll.File (directory) import Text.Hakyll.Render (css, static, renderChain) -import Text.Hakyll.Renderables (createPagePath) +import Text.Hakyll.CreateContext (createPage) -main = hakyll $ do +main = hakyll "http://example.com" $ do directory css "css" render "about.rst" render "index.markdown" render "code.lhs" - where render = renderChain ["templates/default.html"] . createPagePath + where render = renderChain ["templates/default.html"] + . createPage |