summaryrefslogtreecommitdiff
path: root/src/Site.hs
blob: d1afbceb3c809ec8f873bcb586a2e0f38957b6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# LANGUAGE OverloadedStrings #-}

import Hakyll

main :: IO ()
main = hakyllWith config $ do
  match "/posts/*" $ do
    route $ setExtension ".html"
    compile $ do
      pandocCompiler
        >>= saveSnapshot "content"
        >>= loadAndApplyTemplate "templates/default.html" defaultContext
        >>= relativizeUrls

config :: Configuration
config = defaultConfiguration