2020-04-29 18:41:29 +08:00
|
|
|
<% const postList = createNewArchivePosts(posts_new) %>
|
|
|
|
<div class="archive-list-container">
|
|
|
|
<% postList.forEach(postYear => { %>
|
|
|
|
<section class="archive-item">
|
|
|
|
<div class="archive-item-header">
|
|
|
|
<span class="archive-year"><%= postYear.year %></span>
|
2020-11-17 18:21:16 +08:00
|
|
|
<span class="archive-year-post-count">(<%= postYear.postList.length %>)</span>
|
2020-04-29 18:41:29 +08:00
|
|
|
</div>
|
|
|
|
<ul class="article-list">
|
|
|
|
<% postYear.postList.forEach(post => { %>
|
|
|
|
<li class="article-item">
|
|
|
|
<a class="article-title"
|
|
|
|
href="<%- url_for(post.path) %>"
|
|
|
|
><%= post.title %></a>
|
|
|
|
<span class="article-date"><%= date(post.date, 'MM-DD') %></span>
|
|
|
|
</li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
<% }) %>
|
2020-09-02 12:12:40 +08:00
|
|
|
</div>
|