on master help sign in
Update tagblog example
commitb90cfae6f1c01c4ed78123cc3eac021cefd7f519 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateWed 13 Apr 2011, 21:22 (16 years ago) parent131a49c
1 file changed+2−3
examples/tagblog/hakyll.hs+2−3
examples/tagblog/hakyll.hs+2−3
@@ -4,7 +4,6 @@ module Main where
44import Prelude hiding (id)
55import Control.Arrow ((>>>), (***), arr)
66import Control.Category (id)
7−import qualified Data.Map as M
87import Data.Monoid (mempty, mconcat)
98
109import Hakyll
@@ -21,7 +20,7 @@ main = hakyll $ do
2120 route $ setExtension ".html"
2221 compile $ pageCompiler
2322 >>> arr (renderDateField "date" "%B %e, %Y" "Date unknown")
24− >>> renderTagsField "prettytags" (fromCaptureString "tags/*")
23+ >>> renderTagsField "prettytags" (fromCapture "tags/*")
2524 >>> applyTemplateCompiler "templates/post.html"
2625 >>> applyTemplateCompiler "templates/default.html"
2726 >>> relativizeUrlsCompiler
@@ -69,7 +68,7 @@ main = hakyll $ do
6968 renderTagCloud' = renderTagCloud tagIdentifier 100 120
7069
7170 tagIdentifier :: String -> Identifier
72− tagIdentifier = fromCaptureString "tags/*"
71+ tagIdentifier = fromCapture "tags/*"
7372
7473-- | Auxiliary compiler: generate a post list from a list of given posts, and
7574-- add it to the current page under @$posts@