22 lines
828 B
Plaintext
22 lines
828 B
Plaintext
<%
|
|
const postList = createNewArchivePosts(is_archive() ? site.posts : page.posts)
|
|
%>
|
|
<div class="archive-container">
|
|
<% postList.forEach(postYear => { %>
|
|
<section class="archive-item">
|
|
<div class="archive-item-header">
|
|
<span class="archive-year"><%= postYear.year %></span>
|
|
</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>
|
|
<% }) %>
|
|
</div> |