Browse Source

hakyll and haskell fumbling

john melesky 8 years ago
parent
commit
857bd32671
1 changed files with 1 additions and 1 deletions
  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)