<% page.posts.forEach(post => { %>
-
<% if (post.top) { %>
<% } %>
<% if (post.excerpt) { %>
<%- post.excerpt %>
<% } else { %>
<%- truncate(strip_html(post.content), {length: 168}) %>
<% } %>
<%= date(post.date, 'YYYY-MM-DD') %>
<% if (theme.magic.enable === true) { %>
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
<% post.categories.forEach((category, i) => {
if (theme.home_article.category.limit === 0 || i + 1 <= theme.home_article.category.limit) { %>
-
<%= i === 0 ? '' : '> ' %>
<%= category.name %>
<% } %>
<% }); %>
<% } %>
<% if (post.tags.length && theme.home_article.tag.enable === true) { %>
<% post.tags.forEach((tag, i) => {
if (theme.home_article.tag.limit === 0 || i + 1 <= theme.home_article.tag.limit) { %>
-
<%= i === 0 ? '' : '| ' %>
<%= tag.name %>
<% }}); %>
<% } %>
<% } %>
<% if (theme.magic.enable === false) { %>
<% } %>
<%- __('read_more') %>
<% }) %>
<%- partial('_partial/paginator', {pageObject: page}) %>