Fixed showing "siblings" text even if theren't any

This commit is contained in:
Marcin Kurczewski 2014-11-04 19:27:15 +01:00
parent 005d857cfb
commit ec2fe23f7e

View file

@ -77,19 +77,21 @@
<% } %> <% } %>
</form> </form>
<div class="siblings"> <% if (siblings.length) { %>
<h3>Siblings</h3> <div class="siblings">
<h3>Siblings</h3>
<ul> <ul>
<% _.each(siblings.slice(0, 50), function(tag) { %> <% _.each(siblings.slice(0, 50), function(tag) { %>
<li class="tag-category-<%= tag.category %>"> <li class="tag-category-<%= tag.category %>">
<a href="#/tag/<%= tag.name %> <a href="#/tag/<%= tag.name %>
"><%= tag.name %> "><%= tag.name %>
</a> </a>
</li> </li>
<% }) %> <% }) %>
</ul> </ul>
</div> </div>
<% } %>
<div class="post-list"> <div class="post-list">
<h3>Example usages</h3> <h3>Example usages</h3>