Skip to content

Commit

Permalink
Merge pull request #1362 from sacr3dc0w/breadcrumbs
Browse files Browse the repository at this point in the history
Fix errors in breadcrumb schema markup
  • Loading branch information
bc-zoharmuzafi authored Oct 8, 2018
2 parents 06181d1 + 5db3fe5 commit 47729bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Fix broken breadcrumb schema markup [#1362](https://github.com/bigcommerce/cornerstone/pull/1362)

## 2.5.0 (2018-09-26)
- Blueprint for Mapping Custom Templates to JavaScript Modules [#1346](https://github.com/bigcommerce/cornerstone/pull/1346)
Expand Down
3 changes: 2 additions & 1 deletion templates/components/common/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
{{#each breadcrumbs}}
<li class="breadcrumb {{#if @last}}is-active{{/if}}" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
{{#if url}}
<a href="{{url}}" class="breadcrumb-label" itemprop="item">{{name}}</a>
<a href="{{url}}" class="breadcrumb-label" itemprop="item"><span itemprop="name">{{name}}</span></a>
{{else}}
<meta itemprop="item" content="{{url}}">
<span class="breadcrumb-label" itemprop="name">{{name}}</span>
{{/if}}
<meta itemprop="position" content="{{@index}}" />
Expand Down

0 comments on commit 47729bc

Please sign in to comment.