summaryrefslogtreecommitdiff
path: root/examples/morepages/hakyll.hs
diff options
context:
space:
mode:
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"