2022-10-08 23:43:52 +08:00
|
|
|
<%
|
|
|
|
const target_date = post.date !== post.updated ? post.updated : post.date
|
|
|
|
%>
|
2020-11-19 14:49:19 +08:00
|
|
|
<div class="home-article-meta-info-container">
|
|
|
|
<div class="home-article-meta-info">
|
2022-10-08 23:43:52 +08:00
|
|
|
<span>
|
|
|
|
<i class="fas fa-history"></i>
|
|
|
|
<span class="home-article-date" data-date="<%= target_date %>">
|
|
|
|
<%= date(target_date, 'YYYY-MM-DD') %>
|
|
|
|
</span>
|
|
|
|
</span>
|
2020-11-19 14:49:19 +08:00
|
|
|
<% if (post.categories.length && theme.home_article.category.enable === true) { %>
|
2021-01-21 20:05:30 +08:00
|
|
|
<span class="home-article-category"><i class="fas fa-folder"></i>
|
2020-11-19 14:49:19 +08:00
|
|
|
<ul>
|
|
|
|
<% post.categories.forEach((category, i) => {
|
|
|
|
if (theme.home_article.category.limit === 0 || i + 1 <= theme.home_article.category.limit) { %>
|
|
|
|
<li>
|
|
|
|
<%= i === 0 ? '' : '> ' %>
|
2021-01-21 20:05:30 +08:00
|
|
|
<a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
2020-11-19 14:49:19 +08:00
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
|
|
|
<% if (post.tags.length && theme.home_article.tag.enable === true) { %>
|
|
|
|
<span class="home-article-tag">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-tags"></i>
|
2020-11-19 14:49:19 +08:00
|
|
|
<ul>
|
|
|
|
<% post.tags.forEach((tag, i) => {
|
|
|
|
if (theme.home_article.tag.limit === 0 || i + 1 <= theme.home_article.tag.limit) { %>
|
|
|
|
<li>
|
|
|
|
<%= i === 0 ? '' : '| ' %>
|
2021-01-21 20:05:30 +08:00
|
|
|
<a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
|
2020-11-19 14:49:19 +08:00
|
|
|
</li>
|
|
|
|
<% }}); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
2021-01-21 20:16:37 +08:00
|
|
|
<a href="<%- url_for(post.path) %>"><%- __('read_more') %> <i class="fas fa-angle-right"></i></a>
|
2020-11-19 14:49:19 +08:00
|
|
|
</div>
|