diff options
| author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-03-11 18:03:48 +0100 |
|---|---|---|
| committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-03-11 18:03:48 +0100 |
| commit | fa88a0e9228a831f2808cda5c859e882b6579ccd (patch) | |
| tree | 92a533a2c7f627ff3308f6f182829858afe8f3e9 /examples/brochure | |
| parent | 01d8c4b330ecbc8ca52bfbe659bdecad475bd1ab (diff) | |
| download | hakyll-fa88a0e9228a831f2808cda5c859e882b6579ccd.tar.gz | |
Started writing Hakyll 2.x tutorials. Updated brochure example.
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 |
