summaryrefslogtreecommitdiff
path: root/examples/morepages/hakyll.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-19 17:17:48 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-01-19 17:17:48 +0100
commit0ba0eac8d96c11d13163c7ec184392513de7ca77 (patch)
treeca806e7fc8d8f049e251a4962136ce99fa2a004c /examples/morepages/hakyll.hs
parentdb0eef84705ebc25b3886cc94125dfebb84a45a0 (diff)
downloadhakyll-0ba0eac8d96c11d13163c7ec184392513de7ca77.tar.gz
Wrote another tutorial, and updated some tutorials.
Diffstat (limited to 'examples/morepages/hakyll.hs')
-rw-r--r--examples/morepages/hakyll.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/morepages/hakyll.hs b/examples/morepages/hakyll.hs
new file mode 100644
index 0000000..a806042
--- /dev/null
+++ b/examples/morepages/hakyll.hs
@@ -0,0 +1,13 @@
+import Text.Hakyll (hakyll, defaultHakyllConfiguration)
+import Text.Hakyll.File (directory)
+import Text.Hakyll.Render (css, static, renderChain)
+import Text.Hakyll.Renderables (createPagePath, combine)
+
+main = hakyll defaultHakyllConfiguration $ 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"