在文章title下方为每篇文章增加作者信息
This commit is contained in:
parent
826a654766
commit
61ddfbf724
8
layout/_partial/post/author.ejs
Normal file
8
layout/_partial/post/author.ejs
Normal 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>
|
||||
|
||||
<% } %>
|
Loading…
Reference in New Issue
Block a user