2010-01-19 19:42:16 +00:00
|
|
|
import Text.Hakyll (hakyll)
|
2010-01-19 16:17:48 +00:00
|
|
|
import Text.Hakyll.File (directory)
|
|
|
|
import Text.Hakyll.Render (css, static, renderChain)
|
|
|
|
import Text.Hakyll.Renderables (createPagePath, combine)
|
|
|
|
|
2010-01-19 19:42:16 +00:00
|
|
|
main = hakyll $ do
|
2010-01-19 16:17:48 +00:00
|
|
|
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"
|