summaryrefslogtreecommitdiff
path: root/data/example
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-01-08 18:02:27 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-01-08 18:02:27 +0100
commit5948e1936fb86119bc404672a66e64f3daa5d990 (patch)
tree134577eaaf8a885a2e521050f441649f3c2f5097 /data/example
parent50371ab5c198509c710a289430e1ad752eac786a (diff)
downloadhakyll-5948e1936fb86119bc404672a66e64f3daa5d990.tar.gz
Example site preprocess shadowing
Diffstat (limited to 'data/example')
-rw-r--r--data/example/site.hs4
1 files changed, 2 insertions, 2 deletions
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