summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Site.hs16
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
3import Hakyll
4
5main :: IO ()
6main = 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
15config :: Configuration
16config = defaultConfiguration