Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldjson3 #52

Merged
merged 1 commit into from Aug 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
62 changes: 61 additions & 1 deletion src/components/seo.js
Expand Up @@ -26,6 +26,62 @@ function SEO({ description, lang, meta, title }) {
)

const metaDescription = description || site.siteMetadata.description
const jsonLD = {
  "@context": "schema.org",
  "@type": "LocalBusiness",
  "name": "Isabella Fitness",
  "image": "https://isabellafitness.com/wp-content/uploads/2016/10/Isbella-Logo-fit-green-up.png",
  "@id": "",
  "url": "isabellafitness.com",
  "telephone": "732-532-3337",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "242 Main Street #B-D",
    "addressLocality": "Sayreville",
    "addressRegion": "NJ",
    "postalCode": "08872",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 40.4684293,
    "longitude": -74.36053379999998
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday"
    ],
    "opens": "05:30",
    "closes": "21:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Friday",
    "opens": "05:30",
    "closes": "19:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Saturday",
    "opens": "08:30",
    "closes": "12:00"
  },{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": "Sunday",
    "opens": "08:00",
    "closes": "12:00"
  }],
  "sameAs": [
    "https://www.facebook.com/isabellafitness/",
    "https://www.instagram.com/isabella_fitness_/",
    "https://www.youtube.com/user/Bennyboi37",
    "https://twitter.com/IsabellaFitness"
  ]
}


return (
<Helmet
Expand Down Expand Up @@ -68,7 +124,11 @@ function SEO({ description, lang, meta, title }) {
content: metaDescription,
},
].concat(meta)}
/>
>
<script type='application/ld+json'>
{JSON.stringify(jsonLD)}
</script>
</Helmet>
)
}

Expand Down