Merge pull request #1766 from ivanbakel/fix-meta-typo

Fix typo in how description meta tags are laid out
This commit is contained in:
Michael Snoyman 2022-04-25 05:15:55 +03:00 committed by GitHub
commit 0a273d5aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# ChangeLog for yesod-core
## 1.6.23.1
* Fix typo in creation of the description `<meta>` tag in `defaultLayout`. [#1766](https://github.com/yesodweb/yesod/pull/1766)
## 1.6.23
* Add idempotent versions of `setDescription`, `setDescriptionI`. These functions

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

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.6.23
version: 1.6.23.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>