Преглед изворни кода

hakyll and haskell fumbling

john melesky пре 8 година
родитељ
комит
857bd32671
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      site.hs

+ 1 - 1
site.hs

@@ -67,7 +67,7 @@ main = hakyll $ do
   create ["new_index.html"] $ do
     route idRoute
     compile $ do
-      post <- fmap (head) recentFirst =<< loadAll "posts/*.md"
+      post <- fmap (head) . recentFirst =<< loadAll "posts/*.md"
       pandocCompiler
         >>= loadAndApplyTemplate "templates/post.html"    (postCtxWithTags tags)
         >>= loadAndApplyTemplate "templates/default.html" (postCtxWithTags tags)