Skip to content

js at head with attributes for json blocks #10219

Discussion options

You must be logged in to vote

You can pull this off using the {% script %} tag:

{% 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 %}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gbowne-quickbase
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants