Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
adding microdata from schema.org to home page, #138
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed Oct 27, 2013
1 parent 7f2b65d commit 32045a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions public/javascripts/areas/home/views/templates/_homeProducts.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<div id="products" class="row">
<div id="carousel">
{{#each products}}
<div id="product{{_id}}" data-id="{{_id}}" class="product">
<a id="product{{_id}}_picture" href="{{url}}" class="link" data-not-push-state="true">
<div id="product{{_id}}" data-id="{{_id}}" class="product" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="{{name}}" />
<a id="product{{_id}}_picture" href="/{{url}}" class="link" data-not-push-state="true" itemprop="url">
<img src="{{pictureThumb}}" alt="{{name}}" class="picture" />
<div class="productInfoBox">
<span id="product{{_id}}_storeName" class="storeName">{{storeName}}</span>
<span id="product{{_id}}_price" class="price">R$ {{price}}</span>
</div>
</a>
<div class="productInfoBox">
<span id="product{{_id}}_storeName" class="storeName">{{storeName}}</span>
<span id="product{{_id}}_price" class="price">R$ {{price}}</span>
</div>
</div>
{{/each}}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{{#each storeGroups}}
<div class="row storesRow">
{{#each stores}}
<div id="store{{_id}}" data-id="{{_id}}" class="store col-md-3">
<a href="/{{slug}}" class="link" data-not-push-state="true"><img src="{{flyer}}" /></a>
<div id="store{{_id}}" data-id="{{_id}}" class="store col-md-3" itemscope itemtype="http://schema.org/Store">
<meta itemprop="name" content="{{name}}" />
<a href="/{{slug}}" class="link" data-not-push-state="true" itemprop="url"><img src="{{flyer}}" /></a>
</div>
{{/each}}
</div>
Expand Down

0 comments on commit 32045a4

Please sign in to comment.