2019-12-03 11:37:44 +00:00
|
|
|
<section class="outer">
|
|
|
|
<% if (site.categories.length){ %>
|
|
|
|
<h1 class="page-type-title"><%= __('categories') %></h1>
|
2020-01-18 14:13:43 +00:00
|
|
|
<!-- <%- list_categories({show_count: theme.show_count}) %> -->
|
|
|
|
<ul class="category-list">
|
2020-05-03 01:53:04 +00:00
|
|
|
<% site.categories.map(function(item){ %>
|
2020-01-18 14:13:43 +00:00
|
|
|
<% if(item.posts.length){ %>
|
|
|
|
<a class="category-list-link" href="<%- config.root %><%- item.path %>" title="<%= item.name %>">
|
|
|
|
<li class="category-list-item">
|
|
|
|
<%= item.name %><i><%= item.posts.length %></i>
|
|
|
|
</li>
|
|
|
|
</a>
|
|
|
|
<% } %>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
2019-12-03 11:37:44 +00:00
|
|
|
<% } %>
|
|
|
|
</section>
|