summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-13 21:22:31 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-13 21:22:31 +0200
commitb90cfae6f1c01c4ed78123cc3eac021cefd7f519 (patch)
treed6d6d135e44ee1253a04a0b8565ddd7b00d4d85e /examples
parent131a49c0e713cf1e2848fd9f47aadf36d65e9175 (diff)
downloadhakyll-b90cfae6f1c01c4ed78123cc3eac021cefd7f519.tar.gz
Update tagblog example
Diffstat (limited to 'examples')
-rw-r--r--examples/tagblog/hakyll.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/tagblog/hakyll.hs b/examples/tagblog/hakyll.hs
index f8afdd5..0f1e7ab 100644
--- a/examples/tagblog/hakyll.hs
+++ b/examples/tagblog/hakyll.hs
@@ -4,7 +4,6 @@ module Main where
import Prelude hiding (id)
import Control.Arrow ((>>>), (***), arr)
import Control.Category (id)
-import qualified Data.Map as M
import Data.Monoid (mempty, mconcat)
import Hakyll
@@ -21,7 +20,7 @@ main = hakyll $ do
route $ setExtension ".html"
compile $ pageCompiler
>>> arr (renderDateField "date" "%B %e, %Y" "Date unknown")
- >>> renderTagsField "prettytags" (fromCaptureString "tags/*")
+ >>> renderTagsField "prettytags" (fromCapture "tags/*")
>>> applyTemplateCompiler "templates/post.html"
>>> applyTemplateCompiler "templates/default.html"
>>> relativizeUrlsCompiler
@@ -69,7 +68,7 @@ main = hakyll $ do
renderTagCloud' = renderTagCloud tagIdentifier 100 120
tagIdentifier :: String -> Identifier
- tagIdentifier = fromCaptureString "tags/*"
+ tagIdentifier = fromCapture "tags/*"
-- | Auxiliary compiler: generate a post list from a list of given posts, and
-- add it to the current page under @$posts@