问题
I'd like to place a Schema.org Organization
item on my website.
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?
回答1:
With Schema.org, you would typically provide structured data about what is relevant to the current page.
Assuming that it’s the website of the organization, you could specify your Organization
as value for these properties:
- publisher
(forWebSite
, for everyWebPage
) - about and mainEntity
(forWebSite
, for theWebPage
on the homepage, for theAboutPage
) - author
(forArticle
,BlogPosting
etc.)
(There are more properties, of course. Simply check the type pages for properties that have Organization
, or the parent type Thing
, as "Expected Type".)
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.
来源:https://stackoverflow.com/questions/41851291/schema-org-organization-only-on-contact-page-or-on-every-page