mirror of https://github.com/jkjoy/sunpeiwen.git
增加文章页自动摘要
This commit is contained in:
parent
5965870520
commit
3bf0c9e524
|
@ -9,6 +9,14 @@
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<div class="content">
|
<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>
|
<div><%-page.content%></div>
|
||||||
<% if(theme.copyright.enable){ %>
|
<% if(theme.copyright.enable){ %>
|
||||||
<div class="post-copyright">
|
<div class="post-copyright">
|
||||||
|
|
Loading…
Reference in New Issue