<% var title = ''; if (page.category) title = page.category; if (page.tag) title = "#" + " " + page.tag; if (page.archive) { if (page.year) title = page.year + (page.month ? '/' + page.month : ''); else title = __('archive_a'); } %>

<%- title %>

<% if (pagination == 2){ %> <% page.posts.each(function(post){ %> <%- partial('article', {post: post, index: true}) %> <% }) %>
<% } else { %> <% var last; %> <% page.posts.each(function(post, i){ %> <% var year = post.date.year(); %> <% if (last != year){ %> <% if (last != null){ %> <% } %> <% last = year; %>
<% } %> <%- partial('archive-post', {post: post, even: i % 2 == 0}) %> <% }) %> <% if (page.posts.length){ %>
<% } %> <% } %> <% if (page.total > 1){ %> <% } %>