on master help sign in
Example site preprocess shadowing
commit5948e1936fb86119bc404672a66e64f3daa5d990 authorJasper Van der Jeugt <m@jaspervdj.be> dateTue 8 Jan 2013, 18:02 (14 years ago) parent50371ab
1 file changed+2−2
data/example/site.hs+2−2
data/example/site.hs+2−2
@@ -65,8 +65,8 @@ postCtx =
6565
6666--------------------------------------------------------------------------------
6767postList :: ([Item String] -> [Item String]) -> Compiler String
68−postList preprocess = do
69− posts <- preprocess <$> loadAll "posts/*"
68+postList sortFilter = do
69+ posts <- sortFilter <$> loadAll "posts/*"
7070 itemTpl <- loadBody "templates/post-item.html"
7171 list <- applyTemplateList itemTpl postCtx posts
7272 return list