11<section class =" outer" >
2- <article class =" articles" >
3- <%
2+ <article class =" articles" >
3+ <%
44 var title = ' ' ;
55 if (page .category ) title = page .category ;
66 if (page .tag ) title = " #" + "  " + page .tag ;
99 else title = __ (' archive_a' );
1010 }
1111 %>
12- <h1 class =" page-type-title" ><% - title %> </h1 >
13- <% if (pagination == 2 ){ % >
14- < % page .posts .each (function (post ){ % >
15- < %- partial (' article' , {post: post, index: true }) % >
16- < % }) % >
17- < / article>
18- < % } else { % >
19- < % var last; % >
20- < % page .posts .each (function (post , i ){ % >
21- < % var year = post .date .year (); % >
22- < % if (last != year){ % >
23- < % if (last != null ){ % >
24- < / div>< / div>
25- < % } % >
26- < % last = year; % >
27- < div class = " archives-wrap" >
28- < div class = " archive-year-wrap" >
29- < a href= " <%- url_for(config.archive_dir + '/' + year) %>" class = " archive-year" >< %= year % >< / a>
30- < / div>
31- < div class = " archives" >
32- < % } % >
33- < %- partial (' archive-post' , {post: post, even: i % 2 == 0 }) % >
34- < % }) % >
35- < % if (page .posts .length ){ % >
36- < / div>
37- < / div>
12+ <h1 class =" page-type-title" ><% - title %> </h1 >
13+ <% if (pagination == 2 ){ % >
14+ < % page .posts .each (function (post ){ % >
15+ < %- partial (' article' , {post: post, index: true }) % >
16+ < % }) % >
17+ < / article>
18+ < % } else { % >
19+ < % var last; % >
20+ < % page .posts .each (function (post , i ){ % >
21+ < % var year = post .date .year (); % >
22+ < % if (last != year){ % >
23+ < % if (last != null ){ % >
24+ < / div>
25+ < / div>
26+ < % } % >
27+ < % last = year; % >
28+ < div class = " archives-wrap" >
29+ < div class = " archive-year-wrap" >
30+ < a href= " <%- url_for(config.archive_dir + '/' + year) %>" class = " archive-year" >< %= year % >< / a>
31+ < / div>
32+ < div class = " archives" >
3833 < % } % >
39- < % } %>
40-
41- <% if (page .total > 1 ){ % >
42- < nav class = " page-nav" >
43- < %- paginator ({
34+ < %- partial (' archive-post' , {post: post, even: i % 2 == 0 }) % >
35+ < % }) % >
36+ < % if (page .posts .length ){ % >
37+ < / div>
38+ < / div>
39+ < % } % >
40+ < % } %>
41+
42+ <% if (page .total > 1 ){ % >
43+ < nav class = " page-nav" >
44+ < %- paginator ({
4445 prev_text: __ (' prev' ),
4546 next_text: __ (' next' )
4647 }) % >
47- < / nav>
48- < % } %>
49- </section >
48+ < / nav>
49+ < % } %>
50+ </section >
0 commit comments