归档
按照创建年份分类
<h2><%= __(</h2>
<% var last; %>
<% site.posts.sort(
<% var year = post.date.year(); %>
<% if (last != year){ %>
<% last = year; %>
<h2><%= year %></h2>
<% } %>
<p class="archive-item">
<a href="<%= url_for(post.path) %>" class="archive-title"><%= post.title %></a>
<span class="archive post-time"><%= date(post.date) %></span>
</p>
<% }) %>
显示文章分类
<% if (post.categories && post.categories.length){ %>
<%- list_categories(post.categories, {
show_count: false,
class: 'article-category',
style: 'none',
separator: '►'
}) %>
<% } %>