getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[seo-magic] Add support for Schema.org structured metadata (json+ld) #283

Open lpbellerose opened 2 years ago

lpbellerose commented 2 years ago

It would be nice to be able to add schema.org to add structured data through admin or on markdown pages.

This feature is available on the free Grav SEO plugin and would be a nice add-on to this one. image image

rhukster commented 2 years ago

@lpbellerose how and where is this microdata output?

My understanding that microdata was specific to the output, so if you had a list of employees, you could define them and output them with standardized microdata itemprop attributes. I'm not sure how this is useful or practical in an SEO plugin? Perhaps i'm just not aware of a more general usecase for this.

lpbellerose commented 2 years ago

@rhukster In the case of this plugin, it transforms this into JSON-LD with the page image

JSon-LD is one of the ways to include schema structured data as well as mocrodata structure (the one you are referencing to with the inline microdata itemprop attributes) and RDFa. There is no need to use more than one syntax, and the microdata structure is nice, but you have to add it to your templates. Using JSON-LD or RDFa gives more flexibility to non-technical users.

Whether or not adding structured data to your pages makes it rank better in search engines is debatable, but it is supposed to help improve the way your page displays in SERPs, which could help convince a user to click on your link.

rhukster commented 2 years ago

ah OK json+ld, that makes sense now. I'll look at adding this in a future update.