js at head with attributes for json blocks #10219
Answered
by
brandonkelly
gbowne-quickbase
asked this question in
Ideas
-
We have a few pages where we need to manually throw in some schema to account for ratings coming in from a third party, so we build out the schema.org object and produce a block like the one below, but we have to use
Ideally, we'd use |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Dec 7, 2021
Replies: 1 comment 1 reply
-
You can pull this off using the {% script at head with {type: 'application/ld+json'} %}
"@context": "http://schema.org",
"@type": "SoftwareApplication",
"name": "Company",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{ ratings.ratingValue }}",
"ratingCount": "{{ ratings.ratingCount }}",
}
{% endscript %} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pull this off using the
{% script %}
tag: