增加文章页自动摘要

This commit is contained in:
浪子 2024-05-09 20:01:54 +08:00
parent 5965870520
commit 3bf0c9e524
2 changed files with 9 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,6 +9,14 @@
</div>
<% } %>
<div class="content">
<blockquote><h3>自动摘要</h3>
<% if (post.excerpt) { %>
<%- post.excerpt %>
<% } else if (post.description) { %>
<%- strip_html(post.description) %>
<% } else { %>
<%- post.content %>
<% } %></blockquote>
<div><%-page.content%></div>
<% if(theme.copyright.enable){ %>
<div class="post-copyright">