@@ -40,7 +40,7 @@ createCustomPage url dependencies association = RenderAction
41 mtuple (a, b) = b >>= \b' -> return (a, b')
41 mtuple (a, b) = b >>= \b' -> return (a, b')
42 toHakyllString = second (either return runRenderAction)
42 toHakyllString = second (either return runRenderAction)
43− assoc' = mapM (mtuple . toHakyllString) association
43+ assoc' = mapM (mtuple . toHakyllString) $ ("url", Left url) : association
45-- | A @createCustomPage@ function specialized in creating listings.
45-- | A @createCustomPage@ function specialized in creating listings.
@@ -110,7 +110,7 @@ combine x y = RenderAction
110 { actionDependencies = actionDependencies x ++ actionDependencies y
110 { actionDependencies = actionDependencies x ++ actionDependencies y
111 , actionUrl = actionUrl x `mplus` actionUrl y
111 , actionUrl = actionUrl x `mplus` actionUrl y
112 , actionFunction = \_ ->
112 , actionFunction = \_ ->
113− liftM2 (M.union) (runRenderAction x) (runRenderAction y)
113+ liftM2 M.union (runRenderAction x) (runRenderAction y)
116-- | Combine two renderables and set a custom URL. This behaves like @combine@,
116-- | Combine two renderables and set a custom URL. This behaves like @combine@,
@@ -122,7 +122,7 @@ combineWithUrl :: FilePath
122combineWithUrl url x y = combine'
122combineWithUrl url x y = combine'
123 { actionUrl = Just $ return url
123 { actionUrl = Just $ return url
124 , actionFunction = \_ ->
124 , actionFunction = \_ ->
125− (M.insert "url" url) <$> runRenderAction combine'
125+ M.insert "url" url <$> runRenderAction combine'
128 combine' = combine x y
128 combine' = combine x y