You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
343 B
17 lines
343 B
{-# LANGUAGE OverloadedStrings #-} |
|
|
|
import Data.Maybe (fromMaybe) |
|
|
|
import Hakyll |
|
|
|
main :: IO () |
|
main = hakyll $ do |
|
match "templates/*" $ |
|
compile templateBodyCompiler |
|
|
|
match "index.md" $ do |
|
route $ constRoute "index.html" |
|
compile $ |
|
pandocCompiler |
|
>>= loadAndApplyTemplate "templates/default.html" defaultContext |
|
|
|
|