From 0ba0eac8d96c11d13163c7ec184392513de7ca77 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 19 Jan 2010 17:17:48 +0100 Subject: Wrote another tutorial, and updated some tutorials. --- examples/morepages/hakyll.hs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/morepages/hakyll.hs (limited to 'examples/morepages/hakyll.hs') 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" -- cgit v1.2.3