diff options
-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 |