Add Tsu theme
This commit is contained in:
21
themes/hexo-theme-Tsu/layout/_partials/posts.ejs
Normal file
21
themes/hexo-theme-Tsu/layout/_partials/posts.ejs
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="posts-wrapper">
|
||||
<% page.posts.each(function(post){ %>
|
||||
<article class="post article-entry">
|
||||
<div class="post-title">
|
||||
<a class="post-title-link text-underline" href="<%- url_for(post.path) %>"><%= post.title %></a>
|
||||
</div>
|
||||
<p class="sub"><%- date(post.date, "MMM DD YYYY") %></p>
|
||||
<div class="post-content">
|
||||
<% if (post.excerpt){ %>
|
||||
<%- post.excerpt %>
|
||||
<p class="article-more-link">
|
||||
<a href="<%- url_for(post.path) %>">阅读全文</a>
|
||||
</p>
|
||||
<% } else { %>
|
||||
<%- post.content %>
|
||||
<% } %>
|
||||
</div>
|
||||
</article>
|
||||
<% }) %>
|
||||
</div>
|
||||
<%- partial('_partials/side-bar') %>
|
Reference in New Issue
Block a user