1
0
mirror of https://github.com/zjx137/hexo-theme-Tsu synced 2025-10-06 00:02:42 +02:00

添加阅读全文功能

This commit is contained in:
millent
2021-02-23 13:04:33 +08:00
parent ca87bd2e31
commit aca008c2af

View File

@@ -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>
<% }) %>