<% if (post.categories && post.categories.length && post.categories.forEach){ %> <% var cats = []; post.categories.forEach(function(cat){ cats.push('' + cat.name + ''); }); %>
 <%- cats.join(' / ') %>
<% } %>