diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Site.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Site.hs b/src/Site.hs new file mode 100644 index 0000000..d1afbce --- /dev/null +++ b/src/Site.hs | |||
@@ -0,0 +1,16 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | import Hakyll | ||
4 | |||
5 | main :: IO () | ||
6 | main = hakyllWith config $ do | ||
7 | match "/posts/*" $ do | ||
8 | route $ setExtension ".html" | ||
9 | compile $ do | ||
10 | pandocCompiler | ||
11 | >>= saveSnapshot "content" | ||
12 | >>= loadAndApplyTemplate "templates/default.html" defaultContext | ||
13 | >>= relativizeUrls | ||
14 | |||
15 | config :: Configuration | ||
16 | config = defaultConfiguration | ||