2022-10-08 23:43:52 +08:00
|
|
|
<%
|
|
|
|
const ami_is_updated = articleObject.date !== articleObject.updated
|
|
|
|
%>
|
2020-03-20 10:58:14 +08:00
|
|
|
<div class="article-meta-info">
|
|
|
|
<span class="article-date article-meta-item">
|
2022-10-08 23:43:52 +08:00
|
|
|
<% if(ami_is_updated) { %>
|
|
|
|
<i class="fa-regular fa-calendar-plus"></i>
|
|
|
|
<% } else { %>
|
|
|
|
<i class="fas fa-edit"></i>
|
|
|
|
<% } %>
|
2021-11-22 21:25:07 +08:00
|
|
|
<span class="pc"><%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD') %></span>
|
|
|
|
<span class="mobile"><%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD') %></span>
|
2020-03-20 10:58:14 +08:00
|
|
|
</span>
|
2022-10-08 23:43:52 +08:00
|
|
|
<% if (ami_is_updated) { %>
|
|
|
|
<span class="article-update-date article-meta-item">
|
|
|
|
<i class="fas fa-file-pen"></i>
|
|
|
|
<span class="pc"><%= date(articleObject.updated, 'YYYY-MM-DD HH:mm:ss') %></span>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-03-21 23:04:01 +08:00
|
|
|
<% if (articleObject.categories.length) { %>
|
2020-03-20 10:58:14 +08:00
|
|
|
<span class="article-categories article-meta-item">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-folder"></i>
|
2020-03-20 10:58:14 +08:00
|
|
|
<ul>
|
2020-03-21 23:04:01 +08:00
|
|
|
<% articleObject.categories.forEach((category, i) => { %>
|
2020-03-20 10:58:14 +08:00
|
|
|
<li>
|
2021-01-21 20:05:30 +08:00
|
|
|
<%= i === 0 ? '' : '> ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
2020-03-20 10:58:14 +08:00
|
|
|
</li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-03-21 23:04:01 +08:00
|
|
|
<% if (articleObject.tags.length) { %>
|
2020-03-20 10:58:14 +08:00
|
|
|
<span class="article-tags article-meta-item">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-tags"></i>
|
2020-03-20 10:58:14 +08:00
|
|
|
<ul>
|
2020-03-21 23:04:01 +08:00
|
|
|
<% articleObject.tags.forEach((tag, i) => { %>
|
2020-03-20 10:58:14 +08:00
|
|
|
<li>
|
2021-01-21 20:05:30 +08:00
|
|
|
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
|
2020-03-20 10:58:14 +08:00
|
|
|
</li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-11-19 17:02:49 +08:00
|
|
|
|
|
|
|
<%
|
2022-10-08 23:43:52 +08:00
|
|
|
let temp_wordcount_count, temp_min2read_count = null
|
2020-11-19 17:02:49 +08:00
|
|
|
try {
|
2022-10-08 23:43:52 +08:00
|
|
|
temp_wordcount_count = wordcount(page.content)
|
|
|
|
temp_min2read_count = min2read(page.content)
|
2020-11-19 17:02:49 +08:00
|
|
|
} catch (e) {
|
2022-10-08 23:43:52 +08:00
|
|
|
temp_wordcount_count = 0
|
|
|
|
temp_min2read_count = 0
|
2020-11-19 17:02:49 +08:00
|
|
|
}
|
|
|
|
%>
|
2021-01-28 16:23:47 +08:00
|
|
|
<% if(is_post() && theme.hasOwnProperty('post') && theme.post.word_count.enable && theme.post.word_count.wordcount && temp_wordcount_count){ %>
|
2020-09-01 18:52:48 +08:00
|
|
|
<span class="article-wordcount article-meta-item">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-file-word"></i> <span><%= temp_wordcount_count %> <%- __('wordcount') %></span>
|
2020-08-13 10:14:33 +08:00
|
|
|
</span>
|
|
|
|
<% } %>
|
2021-01-28 16:23:47 +08:00
|
|
|
<% if(is_post() && theme.hasOwnProperty('post') && theme.post.word_count.enable && theme.post.word_count.min2read && temp_min2read_count){ %>
|
2020-09-01 18:52:48 +08:00
|
|
|
<span class="article-min2read article-meta-item">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-clock"></i> <span><%= temp_min2read_count %> <%- __('min2read') %></span>
|
2020-10-27 18:11:10 +08:00
|
|
|
</span>
|
|
|
|
<% } %>
|
|
|
|
<% if (is_post() && theme.website_count.busuanzi_count.enable && theme.website_count.busuanzi_count.page_pv) { %>
|
|
|
|
<span class="article-pv article-meta-item">
|
2021-01-21 20:05:30 +08:00
|
|
|
<i class="fas fa-eye"></i> <span id="busuanzi_value_page_pv"></span>
|
2020-08-13 10:14:33 +08:00
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-09-01 18:52:48 +08:00
|
|
|
</div>
|