Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: afc2b061f1
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.834 kb
#!/usr/bin/runhaskell
{-# LANGUAGE OverloadedStrings #-}
import Control.Arrow((>>>))
import Hakyll
main = hakyll $ do
match "css/*" $ do
route idRoute
compile compressCssCompiler
match "static/*" $ do
route idRoute
compile copyFileCompiler
match "templates/*" $ do
compile templateCompiler
match "pages/*" $ do
route (setExtension "html")
compile $ pageCompiler >>> applyTemplateCompiler "templates/default.html" >>> relativizeUrlsCompiler
match "toc.md" $ do
route (setExtension "html")
compile $ pageCompiler >>> applyTemplateCompiler "templates/toc.html" >>> relativizeUrlsCompiler
match "index.md" $ do
route (setExtension "html")
compile $ pageCompiler >>> applyTemplateCompiler "templates/cover.html" >>> relativizeUrlsCompiler
Jump to Line
Something went wrong with that request. Please try again.