Skip to content

Commit

Permalink
修复摘要的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Sep 18, 2021
1 parent da8bc5f commit 1809339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<article>
<% if(page.excerpt) {%>
<%- truncate(image_auto_lazyload(page.excerpt), {length: 150}) %>
<%- image_auto_lazyload(page.excerpt) %>
<%} else{ %>
<%- truncate(image_auto_lazyload(page.content), {length: 150}) %>
<%- truncate(image_auto_lazyload(page.content), {length: 150, separator: ' '}) %>
<% } %>
</article>
</div>
Expand Down

0 comments on commit 1809339

Please sign in to comment.