Skip to content

Commit

Permalink
Fix broken breadcrumb schema markup
Browse files Browse the repository at this point in the history
  • Loading branch information
sacr3dc0w committed Sep 26, 2018
1 parent f8387f2 commit 5db3fe5
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 5db3fe5

Please sign in to comment.