paulmassen / grav-plugin-seo

Manage your site’s meta tags for display in search engine results or social media networks. Create and manage json-ld microdata. Includes an easy-to-use live preview feature.
MIT License
84 stars 21 forks source link

Schema.org enhancement #33

Open xetorixik opened 6 years ago

xetorixik commented 6 years ago

It would be great to see a few enhancements to the Schema.org / Microdata part of the plugin.

BreadcrumbList: Ideal to inform the search engine etc. But not visible on the website as it could clash with mobile users.

<script type="application/ld+json">
--
  | {
  | "@context": "http://schema.org",
  | "@type": "BreadcrumbList",
  | "itemListElement": [
  | {
  | "@type": "ListItem",
  | "position": "1",
  | "item": {
  | "@id": "https://test.com/",
  | "name": "Homepage"
  | }
  | },
  | {
  | "@type": "ListItem",
  | "position": "2",
  | "item": {
  | "@id": "https://test.com/blog",
  | "name": "Blog"
  | }
  | }
  | ]
  | }
  | </script>

Place: Your pace on the Google map with info + logo

"location": {
--
  | "@type": "Place",
  | "name": "Moz",
  | "hasMap": "http://maps.google.com/maps?q=Bert%2C+1100+2nd+Ave+Antwerp",
  | "telephone": "(206) 557575757",
  | "image": {
  | "@type": "ImageObject",
  | "url": "https://test.com/logo.png",
  | "height": "252",
  | "width": "862"
  | },

Geo: The GeoCoordinates of the location.

"geo": {
--
  | "@type": "GeoCoordinates",
  | "latitude": "47.65669",
  | "longitude": "-122.356565635780"
  | },
  | "address": {
  | "@type": "PostalAddress",
  | "streetAddress": "Ave Marv 45",
  | "addressLocality": "Antwerp",
  | "addressRegion": "PA",
  | "postalCode": "9856577",
  | "addressCountry": "BE"
  | }
  | },
paulmassen commented 6 years ago

Thanks for this suggestion.

This is a very good idea, and I will add this to the next release.

About the breadcrumbs, I'm not sure it is a good practice to add a breadcrumb json-ld if there is no actual breadcrumbs displayed. If you have some experiences about that, I would be glad to know.

xetorixik commented 6 years ago

Who you are fast. Great. Props to you. About the breadcrumbs without displaying.

You could look at this example: https://moz.com/products

No breadcrumbs displayed but definitely placed as Schema.org code. Moz is not the smallest :) Proven method if you ask me.

paulmassen commented 6 years ago

Ah, thanks! very interesting, it looks like Moz is a good resource to find interesting Schema as they make a good usage of it.

Breadcrumbs will definitely be a very good addition. I'm working on it right now.

I will keep you posted about the advancement.

Thanks again,

Paul

xetorixik commented 6 years ago

Great, Your plugin will only get better and better.

Yup Moz is a great resource to learn (not copy paste, learn and use knowledge). They use many more interesting Schema.org parameters, so if you have some time. Port them! :)

Besides their Microdata, the Moz blog is an interesting source: https://moz.com/blog Yoast is also interesting, but looking at your Github. You already found that.

Keep me informed about your work in progress.

paulmassen commented 6 years ago

I will definitely check out their json. I stumbled upon some very interesting read too: it also looks like google might display some meta description up to 300 character, which is to be considered in the scope of this plugin.

About yoast, I am working on an integration of their text analysis feature to Grav. I am looking for beta tester, so if you are interested in testing this, let me know or ping me on the Grav slack channel !

xetorixik commented 6 years ago

Any update on this work in progress after 2 months 👍

paulmassen commented 6 years ago

Did not had a lot of time to dig into this recently, but I wont forget this. Will let you know !

xetorixik commented 6 years ago

Nice to hear something so soon. Take you time and please keep me informed.

xetorixik commented 6 years ago

@paulmassen Is this grav-seo-plugin project end of life? not seen an update for ages?

paulmassen commented 6 years ago

@xetorixik sorry, had some busy months. I will do some maintenance update to the plugin, but new features will be delayed unless someone feels like adding them.