From 3e066c25b16860fcc3b2094105793c6c11d7f3e9 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Tue, 31 Dec 2019 14:09:40 +0100 Subject: Who am I --- site.hs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'site.hs') 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 -- cgit 1.4.1