Skip to content

Example of dynamically creating JSON-LD to create Google Rich Cards in Meteor? #333

@kpma5891

Description

@kpma5891

I would like to see if somebody could post an example of how to dynamically create a JSON-LD to create a google rich card? I had read issues here and stack overflow posts and I think it's possible but I haven't figured it out how. I would really appreciate if somebody could show me an example of how to implement this.

This is what I've so far:

<Helmet> <script type="application/ld+json"> { {
"@context": "http://schema.org",
"@type": "WebSite",
"name": ${this.state.title.toString()},
"url": ${this.state.url.toString()},
"description": ${this.state.body.toString()},
"image": ${this.state.imgUrlGal.toString()}
}} </script> </Helmet>

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions