Skip to content

Grav Core - Wrong Facebook metadata - Frontmatter #1849

@xetorixik

Description

@xetorixik

Hi,

The metadata function of Grav core is in essence an excellent function. Thanks for that.

There is only 1 problem and that is Facebook Metatags.

For example. Metadata: og:image' produces the HTML header:

<meta name="og:image" property="og:image" content="https://test.be/test.jpg" />

But it should be:

<meta property="og:image" content="https://test.be/test.jpg" />

As can be seen here:

Warnings That Should Be Fixed
Tag specified as 'name' instead of 'property'
The following meta tags are specified using 'name' instead of 'property' and will be ignored unless specified using the 'property' key: og:locale, og:type, og:title, og:description, og:url, og:site_name, fb:app_id, og:image

Reproduce:

  1. Add Metadata: og:image or any Facebook metadata as frontmatter.
  2. Test url via https://developers.facebook.com/tools/debug/sharing/

Please fix the Facebook metadata.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions