|
|
|
@ -3,8 +3,8 @@ |
|
|
|
|
<%- 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> |
|
|
|
|
<% 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) %>"><div class='name'><%- category.name %></div><div class='badge'>(<%- category.posts.length %>)</div></a></li> |
|
|
|
|
<% }) %> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|