For every article, category and tag in your project we create a meta object and a JSON-LD object. When you build the page these objects are inserted into your HTML. See below. Our JSON-LD validates correctly against Google rich text and schema.org testing tools..
<head>
<base href="<!--#4DHTML prefs_o.domain-->" />
<meta charset="utf-8">
<!--#4DHTML page_o.metatag-->
<script type="application/ld+json" class="youdo-schema-graph">
<!--#4DHTML page_o.jsonld-->
</script>
Using this page is an example the meta data is as follows.
<base href="http://localhost:8080" />
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<meta http-equiv='content-type' content='text/html; charset=utf-8' />
<meta name='author' content='Paul Dennis' />
<meta name='description' content='Generate validated schema.org JSON-LD structured data to include in your YouDoCMS pages ' />
<meta name='generator' content='YouDoCMS Serverless Content Management' />
<meta name='msvalidate.01' content='' />
<meta name='google-site-verification' content='' />
<meta name='robots' content='index, follow' />
The JSON-LD object for the organisation, webpage and article is as follows. This includes the path to the Algolia search target URL.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://www.youdocms.com/#organization",
"name": "Youdo Limited",
"url": "https://www.youdocms.com",
"logo": {
"@type": "ImageObject",
"@id": "https://www.youdocms.com/#logo",
"inLanguage": "en-gb",
"url": "https://www.youdocms.com/images/cms_logo.png",
"contentUrl": "https://www.youdocms.com/images/cms_logo.png",
"width": "",
"height": "",
"caption": ""
},
"image": {
"@id": "https://www.youdocms.com/#logo"
}
},
{
"@type": "WebSite",
"@id": "https://www.youdocms.com/#website",
"url": "https://www.youdocms.com",
"name": "YouDoCMS Serverless CMS",
"description": "Serverless desktop cms and static site generator.",
"publisher": {
"@id": "https://www.youdocms.com/#organization"
},
"potentialAction": [
{
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://www.youdocms.com/support/help/youdocms={search_term_string}"
},
"query-input": "required name=search_term_string"
}
],
"inLanguage": "en-gb"
},
{
"@type": "ImageObject",
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#primaryimage",
"inLanguage": "en-gb",
"url": "https://www.youdocms.com/",
"contentUrl": "https://www.youdocms.com/"
},
{
"@type": "WebPage",
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#webpage",
"url": "https://www.youdocms.com/support/cloud-settings/search/json-ld",
"name": "JSON-LD",
"isPartOf": {
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#webpage"
},
"primaryImageOfPage": {
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#primaryimage"
},
"breadcrumb": {
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#breadcrumb"
},
"inLanguage": "en-gb",
"potentialAction": {
"type": "ReadAction",
"target": "https://www.youdocms.com/support/cloud-settings/search/json-ld"
}
},
{
"@type": "Article",
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld#article",
"headline": "JSON-LD",
"description": "Generate validated schema.org JSON-LD structured data to include in your YouDoCMS pages ",
"keywords": [
"JSON-LD",
"schema.org"
],
"articleSection": [
"Search"
],
"publisher": {
"@id": "https://www.youdocms.com/#organization"
},
"mainEntityOfPage": {
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#webpage"
}
},
{
"@type": "BreadcrumbList",
"@id": "https://www.youdocms.com/support/cloud-settings/search/json-ld/#breadcrumb",
"itemListElement": [
{
"@type": "ListItem",
"item": "https://www.youdocms.com/support",
"name": "Support",
"position": 1
},
{
"@type": "ListItem",
"item": "https://www.youdocms.com/support/cloud-settings/search",
"name": "Search SEO",
"position": 2
},
{
"@type": "ListItem",
"item": "https://www.youdocms.com/support/cloud-settings/search/json-ld",
"name": "JSON-LD",
"position": 3
}
]
}
]
}