Schema.org '组织' 仅在联系页面上还是在每个页面上? [英] Schema.org 'Organization' only on contact page or on every page?

查看:31
本文介绍了Schema.org '组织' 仅在联系页面上还是在每个页面上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上放置一个 Schema.org Organization 项目.

I'd like to place a Schema.org Organization item on my website.

我应该只将 JSON-LD 放在联系页面上还是可以将其添加到网站的每个页面上?最好的解决方案是什么?

Should I place the JSON-LD only on the contact page or can I add it to every page of the website? What is the best solution?

推荐答案

使用 Schema.org,您通常会提供与当前页面相关的结构化数据.

With Schema.org, you would typically provide structured data about what is relevant to the current page.

假设它是组织的网站,您可以将您的 Organization 指定为这些属性的值:

Assuming that it’s the website of the organization, you could specify your Organization as value for these properties:

  • publisher
    (对于WebSite,对于每个WebPage)
  • aboutmainEntity
    (对于WebSite,对于主页上的WebPage,对于AboutPage)
  • author
    (对于ArticleBlogPosting 等)
  • publisher
    (for WebSite, for every WebPage)
  • about and mainEntity
    (for WebSite, for the WebPage on the homepage, for the AboutPage)
  • author
    (for Article, BlogPosting etc.)

(当然,还有更多属性.只需检查类型页面中具有 Organization 或父类型 Thing 的属性,作为预期类型".)

(There are more properties, of course. Simply check the type pages for properties that have Organization, or the parent type Thing, as "Expected Type".)

请注意,您不必重复数据,您可以简单地参考.然后,在作为 Organizationurl 给出的页面上提供完整数据是有意义的,通常是主页.

Note that you don’t have to repeat the data, you could simply refer to it instead. Then it would make sense to provide the full data on the page that is given as url of the Organization, so typically the homepage.

这篇关于Schema.org '组织' 仅在联系页面上还是在每个页面上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆