ember-crumbly icon indicating copy to clipboard operation
ember-crumbly copied to clipboard

Adding BreadcrumbList schema.org spec

Open kiwiupover opened this issue 8 years ago • 1 comments

Closes #118

Usage:

{{bread-crumbs hasSchema=true}}

TODO

  • [ ] make decision on where to do the configuration 1. use the config.environment 2. use the current solution and find and alternative place to reopen the LinkComponent

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

output from foo/bar/baz route

Validate the output here https://search.google.com/structured-data/testing-tool

<ol id="hasSchema" itemscope="" itemtype="http://schema.org/BreadcrumbList" class="ember-view breadcrumb">
  <li id="ember469" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem" class="ember-view">
    <a id="ember470" href="/foo" itemscope="" itemtype="http://schema.org/Thing" itemprop="item" class="ember-view"> <span itemprop="name">
            I am Foo Index
          </span>
    </a>
    <meta itemprop="position" content="1">
  </li>
  <li id="ember472" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem" class="ember-view">
    <a id="ember473" href="/foo/bar" itemscope="" itemtype="http://schema.org/Thing" itemprop="item" class="ember-view active"> <span itemprop="name">
            I am Bar
          </span>
    </a>
    <meta itemprop="position" content="2">
  </li>
  <li id="ember475" itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem" class="ember-view"> <span itemprop="name">
        I am Baz
      </span>
    <meta itemprop="position" content="3">
  </li>
</ol>

@trabus thanks for your help!!

kiwiupover avatar May 25 '17 07:05 kiwiupover

@poteto I thinks this is a good start. There are a couple of issues which I will comment in the code.

Is there no CI?

kiwiupover avatar May 25 '17 07:05 kiwiupover