Fix typo in how description meta tags are laid out

This commit is contained in:
Isaac van Bakel 2022-04-21 14:32:49 +01:00
parent f338e519f2
commit 1295f1c643
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class RenderRoute site => Yesod site where
<head>
<title>#{pageTitle p}
$maybe description <- pageDescription p
<meta type="description" content="#{description}">
<meta name="description" content="#{description}">
^{pageHead p}
<body>
$forall (status, msg) <- msgs

View File

@ -48,7 +48,7 @@ metaTest = describe "Setting page metadata" $ do
res <- request defaultRequest
{ 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 f = toWaiAppPlain App >>= runSession f