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

Can I use this to inject JSONLD into the header? #12

Open
dmfenton opened this issue Oct 7, 2016 · 2 comments
Open

Can I use this to inject JSONLD into the header? #12

dmfenton opened this issue Oct 7, 2016 · 2 comments

Comments

@dmfenton
Copy link

dmfenton commented Oct 7, 2016

I'm looking for a way to inject something like the below into the header on a specific route. This addon seems like it might do the trick but I'm not sure how to make it work.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Dataset",
  "name": {{name}},
  "description": {{description}},
  "url": {{url}},
  "keyworlds": {{tags}},
  "creator": {
    "@type": "Person",
    "name": {{owner}}
  },
  "spatialCoverage": {
    "@type": "Place",
    "geo": {
      "@type": "GeoShape",
      "box:": {{coordinates}}
    }
  },
  "license": {
    "url": {{structuredLicense.url}}
  }
}
</script>
@BlueRaja
Copy link

Yes, but I'd recommend ember-cli-meta-tags. That addon uses this addon, but makes it easier/cleaner to inject JSONLD

@omairvaiyani
Copy link

@dmfenton I've worked on this today for my project - let me know if you're still interested to figure it out or have a better solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants