summaryrefslogtreecommitdiff
path: root/examples/morepages/hakyll.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-11 21:28:52 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-11 21:28:52 +0100
commite0504b0de2385c2bfcf3007d4bed9ec848b3adbe (patch)
treedd4a9a06d7a1d167ea5ea18a4e90105556bfe0c7 /examples/morepages/hakyll.hs
parentfa88a0e9228a831f2808cda5c859e882b6579ccd (diff)
downloadhakyll-e0504b0de2385c2bfcf3007d4bed9ec848b3adbe.tar.gz
Updated tutorial 3.
Diffstat (limited to 'examples/morepages/hakyll.hs')
-rw-r--r--examples/morepages/hakyll.hs8
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"