Blog/themes/freemind/layout/_widget/category.ejs
2022-03-16 22:24:24 +08:00

10 lines
No EOL
346 B
Text

<% if (site.categories.length){ %>
<div class="widget">
<h4><%= __('categories') %></h4>
<ul class="tag_box inline list-unstyled">
<% site.categories.sort('name').each(function(item){ %>
<li><a href="<%- url_for('./') %><%- item.path %>"><%= item.name %><span><%= item.posts.length %></span></a></li>
<% }); %>
</ul>
</div>
<% } %>