在文章title下方为每篇文章增加作者信息

This commit is contained in:
Wang Wei 2021-04-08 19:55:08 +08:00
parent 826a654766
commit 61ddfbf724

View File

@ -0,0 +1,8 @@
<% if (post.authors && post.authors.length){ %>
<div class="<%= class_name %>" <% if (!index){ %> style="text-align: center" <% }%>>
作者<% for (var i = 0; i < post.authors.length - 1; i++) { %>
<%= post.authors[i]%> ,
<% }%> <%= post.authors[post.authors.length - 1] %>
</div>
<% } %>