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 (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(' ') %>">
|
|
|
|
<%- partial('header', {item: item}) %>
|
|
|
|
<div class='content'>
|
|
|
|
<ul class="entry navigation">
|
|
|
|
<% 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>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<% } %>
|