From 2a9756acd8f8e2073b9cb1c3114d3cb856bbe84b Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 4 Apr 2020 06:22:18 +0100 Subject: [PATCH] fix(layout): archives-wrap should be inside archive-container --- themes/chameleon/layout/_partial/archive.ejs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/themes/chameleon/layout/_partial/archive.ejs b/themes/chameleon/layout/_partial/archive.ejs index cd9860c..a785f25 100644 --- a/themes/chameleon/layout/_partial/archive.ejs +++ b/themes/chameleon/layout/_partial/archive.ejs @@ -1,18 +1,11 @@ -<% let last %> <% page.posts.each((post, i) => { %> - <% const year = post.date.year() %> - <% if (last !== year) { %> - <% if (last !== null) { %> - - <% } %> - <% last = year %> - - - <% } %> - <%- partial('archive-post', {post: post}) %> + + + <%- partial('archive-post', { post }) %> <% }) %> <% if (page.posts.length) { %> - + + <% } %> <% if (page.total > 1) { %>