Fix typo in how description meta tags are laid out
This commit is contained in:
parent
f338e519f2
commit
1295f1c643
@ -88,7 +88,7 @@ class RenderRoute site => Yesod site where
|
|||||||
<head>
|
<head>
|
||||||
<title>#{pageTitle p}
|
<title>#{pageTitle p}
|
||||||
$maybe description <- pageDescription p
|
$maybe description <- pageDescription p
|
||||||
<meta type="description" content="#{description}">
|
<meta name="description" content="#{description}">
|
||||||
^{pageHead p}
|
^{pageHead p}
|
||||||
<body>
|
<body>
|
||||||
$forall (status, msg) <- msgs
|
$forall (status, msg) <- msgs
|
||||||
|
|||||||
@ -48,7 +48,7 @@ metaTest = describe "Setting page metadata" $ do
|
|||||||
res <- request defaultRequest
|
res <- request defaultRequest
|
||||||
{ pathInfo = ["desc"]
|
{ pathInfo = ["desc"]
|
||||||
}
|
}
|
||||||
assertBody "<!DOCTYPE html>\n<html><head><title></title><meta type=\"description\" content=\"Second description\"></head><body></body></html>" res
|
assertBody "<!DOCTYPE html>\n<html><head><title></title><meta name=\"description\" content=\"Second description\"></head><body></body></html>" res
|
||||||
|
|
||||||
runner :: Session () -> IO ()
|
runner :: Session () -> IO ()
|
||||||
runner f = toWaiAppPlain App >>= runSession f
|
runner f = toWaiAppPlain App >>= runSession f
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user