-
Notifications
You must be signed in to change notification settings - Fork 442
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
Adding Structured Data #129
Comments
This is a good idea, it is standardized as far as I know and it makes sense. Is there any way of adding the tags without javascript? I used to do this with html tags in the |
No javascript is required to add it. The json-ld format uses the script tag, but that's just semantics. |
What I knew before was https://www.w3.org/TR/microdata. Could you place the json in a separate .js file? That way you get better caching and it doesn't interfere with a proper CSP definition. |
microdata is an older format and search engines are moving towards json-ld format now.
Also, it's structured data for the page, so moving it to a separate file doesn't make sense. We can add it in the tag just like the og and twitter tags we have. It can also be added in the body. |
Yes yes, I read their recommendation.
CSP "is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks." The correct way of using it would break the inline scripts (w/o nounces), hence my question about moving it to another file. This should be a non-issue for most users, just asking as myself and a couple others I know will have to find a workaround :) All in all this a great addition! |
As this is a theme, I did not add too much information in the structured data, but I've made it extensible so that users can add their own. |
Hey guys, I have recently started to dive deep into the SEO aspects of the theme. As I can see, there is no structured data for List of Articles, each article, author etc. Adding some basic structured data can really enhance the website in search results when users are using this theme.
We can use schemas like
BlogPosting
,Article
etc on the pages and give them a boost in the search.Reference commit
The text was updated successfully, but these errors were encountered: