2020-03-20 10:58:14 +08:00
|
|
|
<div class="article-meta-info">
|
|
|
|
<span class="article-date article-meta-item">
|
2021-01-15 11:07:10 +08:00
|
|
|
<i class="fas fa-edit"></i> <%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD') %>
|
2020-03-20 10:58:14 +08:00
|
|
|
</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">
|
2020-11-24 10:55:24 +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>
|
2020-09-02 17:34:08 +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">
|
2020-11-24 10:55:24 +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>
|
|
|
|
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
|
|
|
|
</li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-11-19 17:02:49 +08:00
|
|
|
|
|
|
|
<%
|
|
|
|
let temp_wordcount_count, temp_min2read_count = null;
|
|
|
|
try {
|
|
|
|
temp_wordcount_count = wordcount(page.content);
|
|
|
|
temp_min2read_count = min2read(page.content);
|
|
|
|
} catch (e) {
|
|
|
|
temp_wordcount_count = 0;
|
|
|
|
temp_min2read_count = 0;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<% if(is_post() && theme.post_wordcount.enable && theme.post_wordcount.wordcount && temp_wordcount_count){ %>
|
2020-09-01 18:52:48 +08:00
|
|
|
<span class="article-wordcount article-meta-item">
|
2020-11-24 10:55:24 +08:00
|
|
|
<i class="fas fa-file-word"></i> <span><%= temp_wordcount_count %> <%- __('wordcount') %></span>
|
2020-08-13 10:14:33 +08:00
|
|
|
</span>
|
|
|
|
<% } %>
|
2020-11-19 17:02:49 +08:00
|
|
|
<% if(is_post() && theme.post_wordcount.enable && theme.post_wordcount.min2read && temp_min2read_count){ %>
|
2020-09-01 18:52:48 +08:00
|
|
|
<span class="article-min2read article-meta-item">
|
2020-11-24 10:55:24 +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">
|
2020-11-24 10:55:24 +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>
|