Yasuaki Uechi 9a9c2343d1
All checks were successful
continuous-integration/drone/push Build is passing
complete revamps
2022-12-24 03:20:02 +09:00

36 lines
1.1 KiB
Plaintext
Executable File

<section class="article-list">
<% page.posts.each(function (post) { %>
<article class="article-list__item">
<h2 class="article-list__item__title">
<a href="<%- url_for(post.path) %>"><%= post.title %></a>
</h2>
<!-- <time class="article-list__item__pubdate" pubdate><%- date(post.date, "YYYY-MM-DD") %></time> -->
<% if (theme.menu.tags && post.tags && post.tags.length) { %>
<%- list_tags(post.tags, {
show_count: false,
class: 'article-tag',
style: 'span',
separator: ', '
}) %>
<% } %>
<% if (theme.menu.categories && post.categories && post.categories.length) { %>
<%- list_categories(post.categories, {
show_count: false,
class: 'article-tag',
style: 'span',
separator: ', '
}) %>
<% } %>
<article class="article-list__item__excerpt">
<%- strip_html(post.excerpt) %>
</article>
<a
class="article-list__item__button"
href="<%- url_for(post.path) %>"
><%- __('continue') %></a
>
</article>
<% }) %>
<%- partial('_partial/paginator') %>
</section>