-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize the open graph tag in gatsby #2829
Comments
Does the extra |
It raises and invalid tag warning on SEO analysers, W3C specs says the meta tag shouldn't add any more attributes. |
React Helmet is a far superior way to manage meta tags than doing it in html.js which is why we encourage its usage. But yeah, it's not cool they're adding this. There's this issue there nfl/react-helmet#79 Perhaps the easiest thing to do is do postBuild find/replace with a regex to remove the attribute from HTML pages? |
I came across this exact problem. I added two lines in my package.json that should be set-and-forget:
**update |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
Currently, I am using react-helmet to insert the open graph meta tag in the header. However, the tag is also added with react-helmet="true" attribute.
Another approach is to insert those open graph meta tag in the html.js, but I wonder how to receive different information in different pages.
Any ideas?
The text was updated successfully, but these errors were encountered: