diff options
Diffstat (limited to 'examples/morepages/hakyll.hs')
-rw-r--r-- | examples/morepages/hakyll.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/morepages/hakyll.hs b/examples/morepages/hakyll.hs index 5896fdc..3329b55 100644 --- a/examples/morepages/hakyll.hs +++ b/examples/morepages/hakyll.hs @@ -1,13 +1,13 @@ import Text.Hakyll (hakyll) import Text.Hakyll.File (directory) import Text.Hakyll.Render (css, static, renderChain) -import Text.Hakyll.Renderables (createPagePath, combine) +import Text.Hakyll.CreateContext (createPage, combine) -main = hakyll $ do +main = hakyll "http://example.com" $ do directory css "css" render "about.markdown" render "index.markdown" render "products.markdown" where - render = renderChain ["templates/default.html"] . withFooter . createPagePath - withFooter a = a `combine` createPagePath "footer.markdown" + render = renderChain ["templates/default.html"] . withFooter . createPage + withFooter = flip combine $ createPage "footer.markdown" |