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){ %>
|
|
|
|
<section class='<%- item.widget %>'>
|
|
|
|
<%- partial('header', {item: item, defIcon: 'fas fa-folder-open', defTitle: __('sidebar.category')}) %>
|
|
|
|
<div class='content <%= theme.style %>'>
|
|
|
|
<ul class="entry">
|
|
|
|
<% site.categories.sort('name').each(function(category){ %>
|
|
|
|
<li><a class="flat-box" title="<%- url_for(category.path) %>" href="<%- url_for(category.path) %>"><div class='name'><%- category.name %></div><div class='badge'>(<%- category.posts.length %>)</div></a></li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<% } %>
|