-
Notifications
You must be signed in to change notification settings - Fork 25
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
How to return several json-ld scripts? #247
Comments
I need to know this as well. Hopefully somebody can help us out 👍 |
You can use You can confirm that the following JSON-LD is valid with Structured Data Testing Tool - Google. {
"@context": "http://schema.org",
"@graph":
[
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "https://example.com/articles/1",
"name": "foo"
}
}
]
},
{
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://google.com/article"
},
"headline": "Article headline",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"datePublished": "2015-02-05T08:00:00+08:00",
"dateModified": "2015-02-05T09:20:00+08:00",
"author": {
"@type": "Person",
"name": "John Doe"
},
"publisher": {
"@type": "Organization",
"name": "Google",
"logo": {
"@type": "ImageObject",
"url": "https://google.com/logo.jpg"
}
},
"description": "A most wonderful article"
}
]
} |
Thanks! I was missed the |
Works like a charm. Thank you ymmooot 💃 |
@ymmooot add this issue link or this solution in the readme.md file of the repo. |
@adarshmadrecha I added the description to the README.md 01e5fab |
Hi. I need to return two json-ld scripts -
Article
andBreadcrumbList
which can't be joined one to each other, so i need two sepeated script tags in one component.How i can do it?
The text was updated successfully, but these errors were encountered: