2020-03-20 10:58:14 +08:00
|
|
|
<div class="article-meta-info">
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-03-20 10:58:14 +08:00
|
|
|
<!-- date -->
|
|
|
|
<span class="article-date article-meta-item">
|
2020-03-21 23:04:01 +08:00
|
|
|
<i class="fa fa-calendar-o"></i> <%= date(articleObject.date, 'YYYY-MM-DD HH:mm:ss') %>
|
2020-03-20 10:58:14 +08:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<!-- categories -->
|
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">
|
|
|
|
<i class="fa fa-bookmark"></i>
|
|
|
|
<ul>
|
2020-03-21 23:04:01 +08:00
|
|
|
<% articleObject.categories.forEach((category, i) => { %>
|
2020-03-20 10:58:14 +08:00
|
|
|
<li>
|
|
|
|
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
|
|
|
</li>
|
|
|
|
<% }); %>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- tags -->
|
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">
|
|
|
|
<i class="fa fa-tags"></i>
|
|
|
|
<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>
|
|
|
|
<% } %>
|
|
|
|
</div>
|