我试图将一些schema.org的内容添加到我的网站,并且剃刀视图引擎给我带来麻烦。这是我要添加到主布局中的内容:
<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>
@context是这里的问题,我该如何解决?
使用以下命令进行转义@@
:
标记
<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>
查看资料
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句