diff options
author | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-12-31 14:09:40 +0100 |
---|---|---|
committer | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-12-31 14:09:40 +0100 |
commit | 3e066c25b16860fcc3b2094105793c6c11d7f3e9 (patch) | |
tree | 227054567983f8460cde5f78694804ff961a307e /site.hs | |
parent | My css + removed some template stuff (diff) |
Who am I
Diffstat (limited to 'site.hs')
-rw-r--r-- | site.hs | 15 |
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 |