From 5948e1936fb86119bc404672a66e64f3daa5d990 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 8 Jan 2013 18:02:27 +0100 Subject: Example site preprocess shadowing --- data/example/site.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/example/site.hs b/data/example/site.hs index bd1754f..2488cc8 100644 --- a/data/example/site.hs +++ b/data/example/site.hs @@ -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 -- cgit v1.2.3