summaryrefslogtreecommitdiff
path: root/examples/morepages/hakyll.hs
blob: a8060425f312d57e97f792572ab73bc9a589afda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"