diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-01-08 18:02:27 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-01-08 18:02:27 +0100 |
commit | 5948e1936fb86119bc404672a66e64f3daa5d990 (patch) | |
tree | 134577eaaf8a885a2e521050f441649f3c2f5097 /data/example | |
parent | 50371ab5c198509c710a289430e1ad752eac786a (diff) | |
download | hakyll-5948e1936fb86119bc404672a66e64f3daa5d990.tar.gz |
Example site preprocess shadowing
Diffstat (limited to 'data/example')
-rw-r--r-- | data/example/site.hs | 4 |
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 |