mirror of https://gitlab.com/curben/blog
fix(layout): archives-wrap should be inside archive-container
This commit is contained in:
parent
c24692a391
commit
2a9756acd8
|
@ -1,18 +1,11 @@
|
||||||
<% let last %>
|
|
||||||
<% page.posts.each((post, i) => { %>
|
<% page.posts.each((post, i) => { %>
|
||||||
<% const year = post.date.year() %>
|
<section class="archives-wrap">
|
||||||
<% if (last !== year) { %>
|
<div class="archives">
|
||||||
<% if (last !== null) { %>
|
<%- partial('archive-post', { post }) %>
|
||||||
</div></section>
|
|
||||||
<% } %>
|
|
||||||
<% last = year %>
|
|
||||||
<section class="archives-wrap">
|
|
||||||
<div class="archives">
|
|
||||||
<% } %>
|
|
||||||
<%- partial('archive-post', {post: post}) %>
|
|
||||||
<% }) %>
|
<% }) %>
|
||||||
<% if (page.posts.length) { %>
|
<% if (page.posts.length) { %>
|
||||||
</div></section>
|
</div>
|
||||||
|
</section>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (page.total > 1) { %>
|
<% if (page.total > 1) { %>
|
||||||
<nav id="page-nav" class="page-nav">
|
<nav id="page-nav" class="page-nav">
|
||||||
|
|
Loading…
Reference in New Issue