summaryrefslogtreecommitdiff
path: root/examples/brochure
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-11 18:03:48 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-11 18:03:48 +0100
commitfa88a0e9228a831f2808cda5c859e882b6579ccd (patch)
tree92a533a2c7f627ff3308f6f182829858afe8f3e9 /examples/brochure
parent01d8c4b330ecbc8ca52bfbe659bdecad475bd1ab (diff)
downloadhakyll-fa88a0e9228a831f2808cda5c859e882b6579ccd.tar.gz
Started writing Hakyll 2.x tutorials. Updated brochure example.
Diffstat (limited to 'examples/brochure')
-rw-r--r--examples/brochure/hakyll.hs7
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