58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
<div class="article-meta-info">
|
|
<span class="article-date article-meta-item">
|
|
<i class="fas fa-edit"></i>
|
|
<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>
|
|
</span>
|
|
<% if (articleObject.categories.length) { %>
|
|
<span class="article-categories article-meta-item">
|
|
<i class="fas fa-folder"></i>
|
|
<ul>
|
|
<% articleObject.categories.forEach((category, i) => { %>
|
|
<li>
|
|
<%= i === 0 ? '' : '> ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
|
</li>
|
|
<% }); %>
|
|
</ul>
|
|
</span>
|
|
<% } %>
|
|
<% if (articleObject.tags.length) { %>
|
|
<span class="article-tags article-meta-item">
|
|
<i class="fas fa-tags"></i>
|
|
<ul>
|
|
<% articleObject.tags.forEach((tag, i) => { %>
|
|
<li>
|
|
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
|
|
</li>
|
|
<% }); %>
|
|
</ul>
|
|
</span>
|
|
<% } %>
|
|
|
|
<%
|
|
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.hasOwnProperty('post') && theme.post.word_count.enable && theme.post.word_count.wordcount && temp_wordcount_count){ %>
|
|
<span class="article-wordcount article-meta-item">
|
|
<i class="fas fa-file-word"></i> <span><%= temp_wordcount_count %> <%- __('wordcount') %></span>
|
|
</span>
|
|
<% } %>
|
|
<% if(is_post() && theme.hasOwnProperty('post') && theme.post.word_count.enable && theme.post.word_count.min2read && temp_min2read_count){ %>
|
|
<span class="article-min2read article-meta-item">
|
|
<i class="fas fa-clock"></i> <span><%= temp_min2read_count %> <%- __('min2read') %></span>
|
|
</span>
|
|
<% } %>
|
|
<% if (is_post() && theme.website_count.busuanzi_count.enable && theme.website_count.busuanzi_count.page_pv) { %>
|
|
<span class="article-pv article-meta-item">
|
|
<i class="fas fa-eye"></i> <span id="busuanzi_value_page_pv"></span>
|
|
</span>
|
|
<% } %>
|
|
</div>
|