首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >多门课程需要JSON-LD结构化数据示例

多门课程需要JSON-LD结构化数据示例
EN

Stack Overflow用户
提问于 2020-03-22 15:34:46
回答 1查看 196关注 0票数 1

我引用了下面的示例given by Google

代码语言:javascript
复制
<html>
  <head>
    <title>Introduction to Computer Science and Programming</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Course",
      "name": "Introduction to Computer Science and Programming",
      "description": "Introductory CS course laying out the basics.",
      "provider": {
        "@type": "Organization",
        "name": "University of Technology - Eureka",
        "sameAs": "http://www.ut-eureka.edu"
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

但我有一个包含软技能课程列表的页面。谷歌也提供了名为ItemList的东西,但没有给出如何将其与Course结合在一起的示例。如何在JSON-LD中指定多课程结构化数据?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2021-02-19 17:52:03

我也有同样的问题。再打开一个这样的脚本就足够了:

代码语言:javascript
复制
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Course",
  "name": "Introduction to Computer Science and Programming",
  "description": "Introductory CS course laying out the basics.",
  "provider": {
    "@type": "Organization",
    "name": "University of Technology - Eureka",
    "sameAs": "http://www.ut-eureka.edu"
  }
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Course",
  "name": "Introduction to Computer Science and Programming",
  "description": "Introductory CS course laying out the basics.",
  "provider": {
    "@type": "Organization",
    "name": "University of Technology - Eureka",
    "sameAs": "http://www.ut-eureka.edu"
  }
}
</script>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60796936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档