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.
12 lines
286 B
12 lines
286 B
7 years ago
|
<% 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>
|
||
|
<% } %>
|