hexo-theme-keep/layout/common/article-meta-info.ejs

42 lines
1.4 KiB
Plaintext
Raw Normal View History

<div class="article-meta-info">
<!-- date -->
<span class="article-date article-meta-item">
2020-03-25 23:23:05 +08:00
<i class="fa fa-calendar-o"></i> <%= date(articleObject.date, is_post() ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD') %>
</span>
<!-- categories -->
<% if (articleObject.categories.length) { %>
<span class="article-categories article-meta-item">
<i class="fa fa-bookmark"></i>
<ul>
<% articleObject.categories.forEach((category, i) => { %>
<li>
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
</li>
<% }); %>
</ul>
</span>
<% } %>
<!-- tags -->
<% if (articleObject.tags.length) { %>
<span class="article-tags article-meta-item">
<i class="fa fa-tags"></i>
<ul>
<% articleObject.tags.forEach((tag, i) => { %>
<li>
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(tag.path) %>"><%= tag.name %></a>
</li>
<% }); %>
</ul>
</span>
<% } %>
2020-03-25 23:23:05 +08:00
<!-- page pv -->
<% if (theme.busuanzi_count.enable && theme.busuanzi_count.page_pv && is_post()) { %>
2020-03-25 23:23:05 +08:00
<span class="article-pv article-meta-item">
<i class="fa fa-eye"></i> <span id="busuanzi_value_page_pv"></span>
</span>
<% } %>
</div>