about summary refs log tree commit diff
path: root/site.hs
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel.to.malpa@gmail.com>2019-12-31 14:09:40 +0100
committerPaweł Dybiec <pawel.to.malpa@gmail.com>2019-12-31 14:09:40 +0100
commit3e066c25b16860fcc3b2094105793c6c11d7f3e9 (patch)
tree227054567983f8460cde5f78694804ff961a307e /site.hs
parentMy css + removed some template stuff (diff)
Who am I
Diffstat (limited to 'site.hs')
-rw-r--r--site.hs15
1 files changed, 1 insertions, 14 deletions
diff --git a/site.hs b/site.hs
index b6c2724..3030101 100644
--- a/site.hs
+++ b/site.hs
@@ -21,7 +21,7 @@ main = hakyll $ do
             csses <- loadAll "css/*.css"
             makeItem $ unlines $ map itemBody csses
     
-    match (fromList ["about.md"]) $ do
+    match (fromList ["index.md"]) $ do
         route   $ setExtension "html"
         compile $ pandocCompiler
             >>= loadAndApplyTemplate "templates/default.html" defaultContext
@@ -50,19 +50,6 @@ main = hakyll $ do
                 >>= relativizeUrls
 
 
-    match "index.html" $ do
-        route idRoute
-        compile $ do
-            --posts <- recentFirst =<< loadAll "posts/*"
-            let indexCtx =
-                    --listField "posts" postCtx (return posts) `mappend`
-                    constField "title" "Home"                `mappend`
-                    defaultContext
-
-            getResourceBody
-                >>= applyAsTemplate indexCtx
-                >>= loadAndApplyTemplate "templates/default.html" indexCtx
-                >>= relativizeUrls
 
     match "templates/*" $ compile templateBodyCompiler