Skip to content

Commit

Permalink
Example site preprocess shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Jan 8, 2013
1 parent 50371ab commit 5948e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/example/site.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ postCtx =

--------------------------------------------------------------------------------
postList :: ([Item String] -> [Item String]) -> Compiler String
postList preprocess = do
posts <- preprocess <$> loadAll "posts/*"
postList sortFilter = do
posts <- sortFilter <$> loadAll "posts/*"
itemTpl <- loadBody "templates/post-item.html"
list <- applyTemplateList itemTpl postCtx posts
return list

0 comments on commit 5948e19

Please sign in to comment.