Skip to content

Commit

Permalink
fix(templates): Only show tags when have one
Browse files Browse the repository at this point in the history
  • Loading branch information
oswaldoacauan committed Nov 24, 2013
1 parent 8ab9255 commit e32e4f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/partials/post/list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
{{date published_at timeago="true"}}
</time>
</li>
<li class="post-item-meta-item">on&nbsp;
{{#if tags}}
<li class="post-item-meta-item">
{{#foreach tags}}
<span itemprop="{{#if @first}}articleSection{{else}}keywords{{/if}}">{{name}}</span>
{{/foreach}}
</li>
</li>
{{/if}}
<li class="post-item-meta-item">
<a href="{{url}}#disqus_thread" data-pjax data-disqus-identifier="{{id}}"></a>
</li>
Expand Down
12 changes: 7 additions & 5 deletions src/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
{{date published_at timeago="true"}}
</time>
</li>
<li class="post-meta-item">
{{#foreach tags}}
<span itemprop="{{#if @first}}articleSection{{else}}keywords{{/if}}">{{name}}</span>
{{/foreach}}
</li>
{{#if tags}}
<li class="post-meta-item">
{{#foreach tags}}
<span itemprop="{{#if @first}}articleSection{{else}}keywords{{/if}}">{{name}}</span>
{{/foreach}}
</li>
{{/if}}
<li class="post-meta-item">
<a href="{{url}}#disqus_thread" data-disqus-identifier="{{id}}"></a>
</li>
Expand Down

0 comments on commit e32e4f4

Please sign in to comment.