mirror of
https://github.com/zjx137/hexo-theme-Tsu
synced 2025-10-06 00:02:42 +02:00
添加阅读全文功能
This commit is contained in:
@@ -6,7 +6,14 @@
|
||||
</div>
|
||||
<p class="sub"><%- date(post.date, "MMM DD YYYY") %></p>
|
||||
<div class="post-content">
|
||||
<%- 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>
|
||||
<% }) %>
|
||||
|
Reference in New Issue
Block a user