Skip to content

Commit 041ea4f

Browse files
author
Ben Taylor
committed
Updating readme example
1 parent ae65b2c commit 041ea4f

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,31 @@ For example, If Review preset didn't exist, you could write:
121121
</JSONLD>
122122
```
123123

124+
This will output (minified):
125+
126+
```html
127+
<script type="application/ld+json">
128+
{
129+
"@context": "http://schema.org/",
130+
"@type": "Review",
131+
"name": "It is awesome",
132+
"reviewBody": "This is great!",
133+
"itemReviewed": {
134+
"@type": "Product",
135+
"@id": "product-x"
136+
},
137+
"author": {
138+
"@type": "Person",
139+
"name": "Cool Carl"
140+
},
141+
"locationCreated": {
142+
"@type": "AdministrativeArea",
143+
"name": "Chicago, IL"
144+
}
145+
}
146+
</script>
147+
```
148+
124149
This may seem not as ideal as using the presets, but this allows completely customizable structured data.
125150
There will also be more preset components to come in future releases to make implementation easier so stay tuned!
126151

0 commit comments

Comments
 (0)