I m trying to add some schema.org stuff to my site and the razor view engine is giving me troubles. Here is what I am trying to add to my main layout:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "http://www.example.com",
"logo": "http://www.example.com/media.ashx/repzio-icon.png"
}
</script>
The @context is the issue here, how do I get around this?
Escape it with @@
:
Markup
<script type="application/ld+json">
{
"@@context": "http://schema.org",
"@@type": "Organization",
"url": "http://www.example.com",
"logo": "http://www.example.com/media.ashx/repzio-icon.png"
}
</script>
View Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With