<% if (!isPostList && post.tags && post.tags.length) { %> <% var items = []; post.tags.each(function(item){ items.push('

' + item.name + '

'); }); %> <%- items.join(' ') %> <% } %>