You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

6 years ago
<article class="post reveal <%= (post.title) ? "" : "no-title" %>">
6 years ago
<section class="meta">
<h2 class="title">
<a href="<%- url_for(post.path) %>">
<% if(post.title){ %>
<%= post.title %>
<% } else if (post.date) { %>
6 years ago
<%= date(post.date, config.date_format) %>
6 years ago
<% } %>
</a>
</h2>
6 years ago
<time class="time">
6 years ago
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;<%= date(post.date, config.date_format) %>
6 years ago
</time>
<%- partial('categories',{post:post}) %>
</section>
7 years ago
6 years ago
<section class="article typo">
<%- post.excerpt || post.content %>
<% if (post.excerpt) { %>
<div class="readmore">
6 years ago
<a href="<%- url_for(post.path) %>" class="flat-box">
<i class="fas fa-book-open fa-fw" aria-hidden="true"></i>
阅读全文
</a>
6 years ago
</div>
7 years ago
<% } %>
6 years ago
<% if (post.tags && post.tags.length) { %>
<div class="full-width auto-padding tags">
<% post.tags.each(function(item){ %>
6 years ago
<a href="<%- url_for(item.path) %>"><i class="fas fa-tag fa-fw"></i>&nbsp;<%=item.name %></a>
6 years ago
<%})%>
</div>
<% } %>
</section>
7 years ago
</article>