on master help sign in
Update brochure example code
commitce03e5b3ce60e3fc98dfc8de296db33d503e2049 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateSat 11 Jun 2011, 18:41 (15 years ago) parent0b4abde
2 files changed+5−7
examples/brochure/hakyll.hs+5−7 examples/hakyll/examples/brochure.zip
examples/brochure/hakyll.hs+5−7
@@ -1,6 +1,5 @@
11{-# LANGUAGE OverloadedStrings #-}
22import Control.Arrow ((>>>))
3−import Control.Monad (forM_)
43
54import Hakyll
65
@@ -16,9 +15,8 @@ main = hakyll $ do
1615
1716 match "templates/*" $ compile templateCompiler
1817
19− forM_ ["about.rst", "index.markdown", "code.lhs"] $ \page ->
20− match page $ do
21− route $ setExtension "html"
22− compile $ pageCompiler
23− >>> applyTemplateCompiler "templates/default.html"
24− >>> relativizeUrlsCompiler
18+ match (list ["about.rst", "index.markdown", "code.lhs"]) $ do
19+ route $ setExtension "html"
20+ compile $ pageCompiler
21+ >>> applyTemplateCompiler "templates/default.html"
22+ >>> relativizeUrlsCompiler
examples/hakyll/examples/brochure.zip

Binary file not shown.