Skip to content

Commit

Permalink
Merge pull request #1709 from eahlberg/fix-open-graph-functions
Browse files Browse the repository at this point in the history
Fix functions generating Open Graph metadata
  • Loading branch information
snoyberg committed Nov 19, 2020
2 parents cdd6e28 + fd049ec commit 3b306b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions yesod-core/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for yesod-core

## 1.6.18.7

* Fix functions generating Open Graph metadata[#1709](https://github.com/yesodweb/yesod/pull/1709)

## 1.6.18.6

* Update documentation from `HandlerT` to `HandlerFor` [#1703](https://github.com/yesodweb/yesod/pull/1703)
Expand Down
4 changes: 2 additions & 2 deletions yesod-core/src/Yesod/Core/Widget.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ setDescriptionI msg = do
--
-- @since 1.6.18
setOGType :: MonadWidget m => Text -> m ()
setOGType a = toWidgetHead $ [hamlet|<meta name="og:type" content=#{a}>|]
setOGType a = toWidgetHead $ [hamlet|<meta property="og:type" content=#{a}>|]

-- | Add OpenGraph image meta tag to the head of the page
--
Expand All @@ -241,7 +241,7 @@ setOGType a = toWidgetHead $ [hamlet|<meta name="og:type" content=#{a}>|]
--
-- @since 1.6.18
setOGImage :: MonadWidget m => Text -> m ()
setOGImage a = toWidgetHead $ [hamlet|<meta name="og:image" content=#{a}>|]
setOGImage a = toWidgetHead $ [hamlet|<meta property="og:image" content=#{a}>|]

-- | Link to the specified local stylesheet.
addStylesheet :: MonadWidget m => Route (HandlerSite m) -> m ()
Expand Down
2 changes: 1 addition & 1 deletion yesod-core/yesod-core.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: yesod-core
version: 1.6.18.6
version: 1.6.18.7
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
Expand Down

0 comments on commit 3b306b3

Please sign in to comment.