Skip to content

Why are WebPage and WebSite in an array, vs WebSite.hasPart: [WebPage, ...]? #5

@ThomasDotCodes

Description

@ThomasDotCodes

To state practically, why this:
https://github.com/JayHoltslander/Structured-Data-JSON-LD/blob/master/WebSite.json#L3-L13

	{
		"@context": "http://schema.org",
		"@type": "Webpage",
		"specialty": "CNBC homepage, stock markets, business news, financial news",
		"mainContentOfPage": {
			"@context": "http://schema.org/",
			"@type": "WebPageElement",
			"cssSelector": ".body-content"
		},
		"primaryImageOfPage": "https://placehold.it/640x480"
	},

Instead of

@context": "http://schema.org",
"@type": "WebSite",
"hasPart": [
   webpageDefFromExampleAbove,
  ...footerSidebarAndHeaderElements,
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions