categories.ejs 437 B

123456789101112
  1. <section class='m_widget categories'>
  2. <div class='header'>Categories</div>
  3. <div class='content'>
  4. <% if (site.categories.length){ %>
  5. <ul class="entry">
  6. <% site.categories.sort('name').each(function(item){ %>
  7. <li><a class="flat-box" href="<%= url_for(item.path) %>"><div class='name'><%= item.name %></div><div class='badget'><%= item.posts.length %></div></a></li>
  8. <% }); %>
  9. </ul>
  10. <% } %>
  11. </div>
  12. </section>