summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-29 18:48:57 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-29 18:48:57 +0100
commitfb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1 (patch)
treebb6e9f3d24ac8248c4e45f26484dd3a19c363d36
parent2a4124a41dc5bab71bf8f648d2d2cd8b6958b4db (diff)
downloaddirty-haskell.org-fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1.tar
dirty-haskell.org-fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1.tar.gz
dirty-haskell.org-fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1.tar.bz2
dirty-haskell.org-fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1.tar.xz
dirty-haskell.org-fb55acfc7ce4bf2eebeff72e86fe7cedac7c55b1.zip
Fixed index.html
-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