summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Site.hs6
1 files changed, 3 insertions, 3 deletions
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
87 ] 87 ]
88 renderRss (feedConfig tag) feedCtx =<< loadAllSnapshots pattern "content" 88 renderRss (feedConfig tag) feedCtx =<< loadAllSnapshots pattern "content"
89 89
90 match "index.html" $ rulesExtraDependencies [tagsDependency tags] $ do 90 create ["index.html"] $ rulesExtraDependencies [tagsDependency tags] $ do
91 route idRoute -- $ setExtension ".html" 91 route idRoute -- $ setExtension ".html"
92 compile $ do 92 compile $ do
93 let ctx = mconcat [ listField "tags" defaultContext $ mapM (\(k, _) -> renderTag k tags) $ tagsMap tags 93 let ctx = mconcat [ listField "tags" defaultContext $ mapM (\(k, _) -> renderTag k tags) $ tagsMap tags
@@ -95,8 +95,8 @@ main = hakyllWith config $ do
95 , constField "rss" "/rss/all-posts.rss" 95 , constField "rss" "/rss/all-posts.rss"
96 , defaultContext 96 , defaultContext
97 ] 97 ]
98 item <- getResourceBody 98 {-item <- getResourceBody
99 {-pandocCompilerWith def (def { writerEmailObfuscation = NoObfuscation }) 99 pandocCompilerWith def (def { writerEmailObfuscation = NoObfuscation })
100 >>=-} 100 >>=-}
101 makeItem "" 101 makeItem ""
102 >>= loadAndApplyTemplate "templates/index.html" ctx 102 >>= loadAndApplyTemplate "templates/index.html" ctx