From fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 29 Jan 2016 18:48:57 +0100 Subject: Fixed index.html --- src/Site.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Site.hs b/src/Site.hs index 6cecb85..5f5fbc0 100644 --- a/src/Site.hs +++ b/src/Site.hs @@ -87,7 +87,7 @@ main = hakyllWith config $ do ] renderRss (feedConfig tag) feedCtx =<< loadAllSnapshots pattern "content" - match "index.html" $ rulesExtraDependencies [tagsDependency tags] $ do + create ["index.html"] $ rulesExtraDependencies [tagsDependency tags] $ do route idRoute -- $ setExtension ".html" compile $ do let ctx = mconcat [ listField "tags" defaultContext $ mapM (\(k, _) -> renderTag k tags) $ tagsMap tags @@ -95,8 +95,8 @@ main = hakyllWith config $ do , constField "rss" "/rss/all-posts.rss" , defaultContext ] - item <- getResourceBody - {-pandocCompilerWith def (def { writerEmailObfuscation = NoObfuscation }) + {-item <- getResourceBody + pandocCompilerWith def (def { writerEmailObfuscation = NoObfuscation }) >>=-} makeItem "" >>= loadAndApplyTemplate "templates/index.html" ctx -- cgit v1.2.3