Skip to content

Instantly share code, notes, and snippets.

@klich3
Forked from cjzopen/Organization json-ld
Created February 20, 2020 10:14
Show Gist options
  • Save klich3/c6d7e35d4e52a7dcd118142a9b285bf5 to your computer and use it in GitHub Desktop.
Save klich3/c6d7e35d4e52a7dcd118142a9b285bf5 to your computer and use it in GitHub Desktop.
Organization json-ld example
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "{{ your name }}",
"url": "https://www.example.com/",
"address": "{{ address }}",
"email": "{{ email }}",
"founder": "{{ not important }}",
"foundingDate": "{{ not important }}",
"telephone": "{{ not important }}",
"faxNumber": "{{ not important }}",
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "{{ phone }}",
"email": "{{ email }}",
"url": "https://www.example.com/consult/",
"contactType": "customer service"
}],
"sameAs": ["https://www.facebook.com/xxx", "https://www.youtube.com/user/xxx", "https://www.linkedin.com/company/xxx"],
"logo": {
"@type": "ImageObject",
"@id": "https://www.example.com/#logo",
"url": "https://www.example.com/img/ares-logo-for-google.png",
"caption": "{{ your name }}"
},
"image": {
"@id": "https://www.example.com/#logo"
}
}, {
"@type": "WebSite",
"@id": "https://www.example.com/#website",
"url": "https://www.example.com/",
"name": "{{ your name }}",
"publisher": {
"@id": "https://www.example.com/#organization"
},
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.example.com/?s={search_term_string}",
"query-input": "required name=search_term_string"
}
}, {
"@type": "WebPage",
"@id": "https://www.example.com/#webpage",
"url": "https://www.example.com/",
"inLanguage": "zh-TW",
"name": "{{ your title }}",
"isPartOf": {
"@id": "https://www.example.com/#website"
},
"about": {
"@id": "https://www.example.com/#organization"
},
"description": "{{ your description }}"
}]
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment