You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<% if (post.categories && post.categories.length){ %> |
|
<% |
|
var cats = []; |
|
post.categories.forEach(function(cat){ |
|
cats.push('<a href="'+url_for(cat.path)+'">' + cat.name + '</a>'); |
|
}); |
|
%> |
|
<div class='cats'> |
|
<%- cats.join(', ') %> |
|
</div> |
|
<% } %>
|
|
|