fix(layout): archives-wrap should be inside archive-container

This commit is contained in:
MDLeom 2020-04-04 06:22:18 +01:00
parent c24692a391
commit 2a9756acd8
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 5 additions and 12 deletions

View File

@ -1,18 +1,11 @@
<% let last %>
<% page.posts.each((post, i) => { %>
<% const year = post.date.year() %>
<% if (last !== year) { %>
<% if (last !== null) { %>
</div></section>
<% } %>
<% last = year %>
<section class="archives-wrap">
<div class="archives">
<% } %>
<%- partial('archive-post', {post: post}) %>
<section class="archives-wrap">
<div class="archives">
<%- partial('archive-post', { post }) %>
<% }) %>
<% if (page.posts.length) { %>
</div></section>
</div>
</section>
<% } %>
<% if (page.total > 1) { %>
<nav id="page-nav" class="page-nav">