diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-31 11:19:57 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-31 11:19:57 +0100 |
commit | 7afabf5c098efc2f0df482ab66d9091d7aa3bd23 (patch) | |
tree | a96a60459fa2d8fce6591d56d437d9da13c2b6fd /examples/categoryblog | |
parent | 73d6b1d6614c3965afd96b710bfa79db94d2449e (diff) | |
download | hakyll-7afabf5c098efc2f0df482ab66d9091d7aa3bd23.tar.gz |
Better naming scheme.
Diffstat (limited to 'examples/categoryblog')
-rw-r--r-- | examples/categoryblog/hakyll.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/categoryblog/hakyll.hs b/examples/categoryblog/hakyll.hs index e6d87ea..a5f3996 100644 --- a/examples/categoryblog/hakyll.hs +++ b/examples/categoryblog/hakyll.hs @@ -26,7 +26,7 @@ main = hakyll $ do renderPostList "posts.html" "All posts" renderablePosts -- Render post list per category - mapM_ (\(category, posts) -> renderPostList (categoryToURL category) ("Posts about " ++ category) posts) + mapM_ (\(category, posts) -> renderPostList (categoryToUrl category) ("Posts about " ++ category) posts) (toList categoryMap) -- Render index, including recent posts. @@ -51,12 +51,12 @@ main = hakyll $ do where postManipulation :: ContextManipulation postManipulation = renderDate "date" "%B %e, %Y" "Date unknown" - categoryToURL category = "$root/categories/" ++ removeSpaces category ++ ".html" + categoryToUrl category = "$root/categories/" ++ removeSpaces category ++ ".html" categoryList :: TagMap -> String categoryList = uncurry categoryListItem <=< toList - categoryListItem category posts = "<li>" ++ link category (categoryToURL category) + categoryListItem category posts = "<li>" ++ link category (categoryToUrl category) ++ " - " ++ show (length posts) ++ " items.</li>" renderPostList url title posts = do |