-
Notifications
You must be signed in to change notification settings - Fork 247
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
Create a more integrated solution for including JSON-LD #247
Comments
More thoughts on this: What about implementing a way for vue-meta to have flags for support of various schema... So you'd have:
and maybe a way to create your own flag. So something like this in config:
and then be able to extend various "root" tags, like title
something along those lines
Maybe use https://github.com/joshbuchea/HEAD as a baseline for "flags" support for anything that seems worthy of de-duplication Twitter Privacy, Pinterest, Facebook Instant Articles, OEmbed... there are a number of possible "flag" types... |
I'm using json-ld like this right now
The problem is that unless I have SuggestionHow about just simply checking if the And even better, if innerHTML is passed an With those changes you'd add json-ld with the following syntax:
Looks pretty neat to me. |
Something like this would be neat, too, if not too abstract: jsonLD: {
'@context': 'http://schema.org',
'@type': 'Organization',
name: 'MyApp',
url: 'https://www.myurl.com',
logo: 'https://www.myurl.com/images/logo.png',
} |
I'm currently adding JSON-LD through vue-meta by way of the following method:
While this works, it seems a bit of a hack, and it would be nice to not have to disable the sanitizers, obviously.
I'm not sure the best way to approach this in the codebase, but if someone can point me in the right direction, I'd be happy to add this functionality and submit a PR - or if someone sees an opportunity here to add this functionality - I'd be pleased to see it! Thank you!
The text was updated successfully, but these errors were encountered: