Skip to content
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

microdata : possibilités de les trouver et de les afficher ? #80

Open
al2b opened this issue Aug 31, 2021 · 1 comment
Open

microdata : possibilités de les trouver et de les afficher ? #80

al2b opened this issue Aug 31, 2021 · 1 comment

Comments

@al2b
Copy link
Contributor

al2b commented Aug 31, 2021

[Section SEO]

Regarder s'il y a un moyen de savoir s'il y a des microdata dans la page, et si oui, afficher un tableau avec :

  • nom de l'itemscope (+ afficher la balise complète)
  • le type (+ afficher la balise complète)
  • est ce qu'on affiche tous les itemprop ?
  • voir si on peut ajouter un bouton "envoyer l'html pour tester si l'implémentaiton est correct " vers https://validator.schema.org/

/!\ un itemsecope peut en contenir plusieurs :

<div itemscope itemtype="https://schema.org/SoftwareApplication">
  <span itemprop="name">Angry Birds</span> -

  NÉCESSITE <span itemprop="operatingSystem">ANDROID</span><br>
  <link itemprop="applicationCategory" href="https://schema.org/GameApplication"/>

  <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
  ÉVALUATION :
    <span itemprop="ratingValue">4.6</span> (
    <span itemprop="ratingCount">8864</span> notes )
  </div>

  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    Prix : <span itemprop="price">1.00</span>$
    <meta itemprop="priceCurrency" content="USD" />
  </div>
</div>
@maximecolin
Copy link
Member

maximecolin commented Sep 2, 2021

Attentions les micro data peuvent également être au format JSON. Par exemple :

<script type="application/ld+json">
{
   "@context":"https:\/\/schema.org",
   "@type":"JobPosting",
   "url":"https:\/\/myjob.company\/fr\/gestionnaire-flotte-automobile-f-h-92500-rueil-malmaison-1191601128",
   "image":"https:\/\/myjob.company\/fr\/offres-emploi\/1191601128\/qysr9l.jpg",
   "name":"Gestionnaire - Flotte automobile. F\/H",
   "title":"Gestionnaire - Flotte automobile. F\/H",
   "description":"<p>Rattaché à la Direction Commerciale et Marketing ...<\/p>",
   "responsibilities":"<p>Les missions de votre futur ...<\/p>",
   "employerOverview":"<p>D’origine Néerlandaise et créée en 1963, ...<\/p>",
   "industry":"Automobile",
   "employmentType":"FULL_TIME",
   "jobLocation":{
      "@type":"City",
      "address":{
         "@type":"PostalAddress",
         "postalCode":"92500",
         "addressLocality":"RUEIL MALMAISON",
         "addressCountry":"France"
      }
   },
   "skills":[
      "Aisance relationnelle",
      "Relation BtoB",
      "Rigueur et organisation"
   ],
   "baseSalary":{
      "@type":"MonetaryAmount",
      "currency":"EUR",
      "value":{
         "@type":"QuantitativeValue",
         "minValue":27000,
         "maxValue":35000,
         "unitText":"YEAR"
      }
   },
   "hiringOrganization":{
      "@type":"Organization",
      "name":"LeasePlan"
   },
   "experienceRequirements":"3 à 5 ans",
   "datePosted":"2021-09-02T07:52:58+00:00"
}
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants