Skip to content

Instantly share code, notes, and snippets.

View patrickcoombe's full-sized avatar

Patrick Coombe patrickcoombe

View GitHub Profile
@patrickcoombe
patrickcoombe / newsArticleForbes
Created March 21, 2024 17:09
Forbes News Article JSON-LD
< script type = "application/ld+json" > {
"@context": "http://schema.org",
"@type": "NewsArticle",
"image": {
"@type": "ImageObject",
"url": "https://imageio.forbes.com/specials-images/imageserve/65fc3b897fddab1633651c2e/0x0.jpg?format=jpg&height=900&width=1600&fit=bounds",
"width": 542.79,
"height": 304.6
},
"author": {
@patrickcoombe
patrickcoombe / local-business-example
Created March 19, 2024 19:57
JSON-LD local business
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Restaurant",
"image": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"name": "Dave's Steak House",
@patrickcoombe
patrickcoombe / collection-with-local-business
Created March 19, 2024 19:44
JSON-LD Collection With Local Business
< script class = "city-schema"
type = "application/ld+json" > {
"@context": "http://schema.org",
"@graph": [{
"@type": "WebSite",
"@id": "/#website",
"url": "/",
"name": "",
"description": "Learn about the drug and alcohol detox process, the types of treatment programs available, and the symptoms of detox. Find a detox program near you!",
"publisher": {
@patrickcoombe
patrickcoombe / imageMetadata
Created October 24, 2023 16:06
image metadata json-ld
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "ImageObject",
"contentUrl": "https://example.com/photos/1x1/black-labrador-puppy.jpg",
"license": "https://example.com/license",
"acquireLicensePage": "https://example.com/how-to-use-my-images",
"creditText": "Labrador PhotoLab",
"creator": {
"@type": "Person",
@patrickcoombe
patrickcoombe / covid-19-json-ld.js
Created June 3, 2020 20:00
COVID-19 JSON-LD Example 2
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "SpecialAnnouncement",
"category": "https://www.wikidata.org/wiki/Q81068910",
"name": "Your Title",
"datePosted": "2020-04-15T00:00",
"text": "This is where you would put your announcement...",
"newsUpdatesAndGuidelines": "https://www.example.com/point-to-announcement.html",
"announcementLocation": {
@patrickcoombe
patrickcoombe / covid-19-google.js
Last active June 3, 2020 19:56
COVID-19 JSON-LD example from Google Web Dev
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SpecialAnnouncement",
"name": "Shelter-in-place for 3 California counties",
"text": "As of 11:59 pm on March 17, 2020, all individuals in the 3 counties must strictly follow the provisions in this new Order. This new Order will be in effect through March 30, 2020.",
"datePosted": "2020-03-17T08:00",
"expires": "2020-03-24T23:59",
"quarantineGuidelines": "https://example.org/california/shelter-in-place/",
"diseasePreventionInfo": "https://example.org/california/prevention-tips/",
// two examples
// simple
// and with search
<script type="application/ld+json">{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "My Website Name",
"url": "https://example.com",
@patrickcoombe
patrickcoombe / jobPosting.js
Created October 2, 2019 06:58
jobPosting
<script type = "application/ld+json" > {
"@context": "http://schema.org",
"@type": "JobPosting",
"estimatedSalary": {
"@type": "MonetaryAmount",
"currency": "USD",
"value": {
"@type": "QuantitativeValue",
"minValue": "None",
"maxValue": "None",
@patrickcoombe
patrickcoombe / restaurant-menu
Created October 2, 2019 06:07
restaurant-menu
// original code from schema.org modifciations made to pass Google Structured Data Testing Tool
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"Restaurant",
"url":"http://www.thisisarestaurant.com",
"name":"The Restaurant",
"image":"http://www.example.com/image-of-some-restaurant.jpg",
"telephone":"5615551212",
@patrickcoombe
patrickcoombe / keybase.md
Created September 11, 2019 21:13
keybase.md

Keybase proof

I hereby claim:

  • I am patrickcoombe on github.
  • I am patrickcoombe (https://keybase.io/patrickcoombe) on keybase.
  • I have a public key whose fingerprint is C5C9 E376 C39E 78FE 61EB FB0E 6E87 E5FB 050B ED33

To claim this, I am signing this object: