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.

26 lines
1.0 KiB

6 years ago
<% if (site.categories.length){ %>
<%
var plats = [];
if (item.display) {
item.display.forEach(function(plat){
plats.push(plat);
});
} else {
plats = ['desktop', 'mobile'];
}
%>
<section class="widget <%- theme.style.shadow.card ? 'card-shadow' : '' %> <%- theme.style.blur && theme.style.blur.widget ? 'widget-blur' : '' %> <%- item.class %> <%- plats.join(' ') %>">
4 years ago
<%- partial('header', {item: item}) %>
4 years ago
<div class='content'>
<ul class="entry navigation">
5 years ago
<% site.categories.sort('path').each(function(category){ %>
<li><a class="flat-box<%= category.parent ? ' child' : ''%>"
title="<%- url_for(category.path) %>" href="<%- url_for(category.path) %>"
id="<%= url_for(category.path).replace(/\/|%/g, "")?url_for(category.path).replace(/\/|%/g, ""):"home" %>"
><div class='name'><%- category.name %></div><div class='badge'>(<%- category.posts.length %>)</div></a></li>
6 years ago
<% }) %>
</ul>
</div>
</section>
6 years ago
<% } %>