如何解决打开图形 og:带有 url 作为元或链接的标签
使用开放图通常看起来像
isValid(args,3,List<string>{"float","Int32","Double"})
注意:网站语言设置为 /de/ 或 /en/ 等。
现在,结构化数据 linter 告诉我 "@de 与范围 (ogc:url) 不兼容"
寻找解决方案给我带来了这个 git: [https://github.com/structured-data/linter/issues/49][1]
解决方案是使用 <meta property="og:title" content="title">
<meta property="og:site_name" content="sitename">
<meta property="og:url" content="https://example.com/de/">
<meta property="og:description" content="site description">
<meta property="og:type" content="website">
<meta property="og:image" content="https://example.com/image.png">
和属性 <link />
而不是 href="https://..."
和 <meta />
属性作为 URL。
我已经这样做了,代码现在看起来像这样:
content="https://..."
现在 linter 告诉我 "class ogc:url: 未找到类定义"
...我有点困惑:-P [1]:https://github.com/structured-data/linter/issues/49
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。