poteto / ember-crumbly

Declarative breadcrumb navigation for Ember apps
MIT License
167 stars 78 forks source link

Interest in using schema.org breadcrumb spec #118

Open kiwiupover opened 7 years ago

kiwiupover commented 7 years ago

I need to add schema.org breadcrumb spec to our app and I wondering if this project is interested in adding it.

https://developers.google.com/search/docs/data-types/breadcrumbs http://schema.org/BreadcrumbList

the output would end up something like this

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <a href="https://example.com/books/" itemscope itemtype="http://schema.org/Thing" itemprop="item" >
        <span itemprop="name">Books</span>
    </a>
    <meta itemprop="position" content="1" />
  </li>
  ›
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <a href="https://example.com/books/sciencefiction" itemscope itemtype="http://schema.org/Thing" itemprop="item" >
      <span itemprop="name">Science Fiction</span>
    </a>
    <meta itemprop="position" content="2" />
  </li>
  ›
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <a href="https://example.com/books/sciencefiction/ancillaryjustice" itemscope itemtype="http://schema.org/Thing" itemprop="item" >
      <span itemprop="name">Ancillary Justice</span>
    </a>
    <meta itemprop="position" content="3" />
  </li>
</ol>

The result is this on google search results image

poteto commented 7 years ago

Hey, this would be a great feature! Would you enable this via an option in the config?