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) { %>