about summary refs log tree commit diff
path: root/site.hs
diff options
context:
space:
mode:
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