You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Schema.org标记中引用外部站点文章作为mainEntityOfPage?

正确编写引用外部文章的Schema.org标记

你原来的代码存在两个核心问题:

  1. 重复定义@type(同时指定了Citation和Article),单个Schema对象只能有一个主类型
  2. 语法错误:"@type": "Citation"后应跟冒号而非大括号,且缺少必要的分隔逗号

针对你的场景(当前页面是对外部新闻文章的引用页,包含截图、标题和原文链接),提供两种合规写法:

方案1:用Citation明确标注引用关系

这种方式能清晰体现当前页面的核心是对外部文章的引用:

{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "url": "你的引用页面URL",
  "name": "引用页面的标题",
  "mainEntity": {
    "@type": "Citation",
    "item": {
      "@type": "Article",
      "headline": "Les plus beaux modèles de vasques pour la salle de bain",
      "inLanguage": "fr-FR",
      "isPartOf": {
        "@type": "NewsMediaOrganization",
        "name": "20 Minutes Maison",
        "url": "https://maison.20minutes.fr/"
      },
      "url": "https://maison.20minutes.fr/mm43354-modeles-vasques-salle-de-bain/"
    }
  },
  "image": "你的截图URL"
}
  • 通过mainEntity指定页面核心内容为Citation(引用)
  • 用item字段关联外部Article对象,完整描述原文信息
  • 将isPartOf从字符串改为NewsMediaOrganization对象,符合Schema规范
  • 添加image字段关联页面中的截图URL,丰富页面信息

方案2:直接关联外部Article作为页面主体

若无需强调「引用」动作,可直接将mainEntityOfPage指向外部文章:

{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "url": "你的引用页面URL",
  "name": "引用页面的标题",
  "mainEntityOfPage": {
    "@type": "Article",
    "@id": "https://maison.20minutes.fr/mm43354-modeles-vasques-salle-de-bain/",
    "headline": "Les plus beaux modèles de vasques pour la salle de bain",
    "inLanguage": "fr-FR",
    "isPartOf": {
      "@type": "NewsMediaOrganization",
      "name": "20 Minutes Maison",
      "url": "https://maison.20minutes.fr/"
    },
    "url": "https://maison.20minutes.fr/mm43354-modeles-vasques-salle-de-bain/"
  },
  "image": "你的截图URL"
}
  • 添加@id字段唯一标识外部文章,帮助搜索引擎关联原文
  • 同样规范isPartOf结构,提升标记准确性

内容的提问来源于stack exchange,提问作者HugoScott

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 20:02:36