% var last, postCount = 0; %> <% page.posts.each(function(post, i) { %> <% var year = post.date.year(); %> <% if (last != year) { %> <% if (last != null) { %> <% } %> <% last = year; postCount = 0;%> <%= year %> <% } %> <% postCount++; %> <% if (postCount % 2 == 1) { %> <% } %> <%- partial('summary', { post: post }) %> <% if (postCount == page.posts.length || postCount % 2 == 0) { %> <% } %> <% }) %> <% if (page.posts.length) { %> <% } %> <% if (page.total > 1) { %> <%= _p('nav.current_page', page.current) %><%= _p('nav.total_page', page.total) %> <%- paginator({prev_text: '«', next_text: '»'}) %> <% } %>