diff --git a/layout/_partial/post/author.ejs b/layout/_partial/post/author.ejs new file mode 100644 index 0000000..2bcbd8f --- /dev/null +++ b/layout/_partial/post/author.ejs @@ -0,0 +1,8 @@ +<% if (post.authors && post.authors.length){ %> +
style="text-align: center" <% }%>> + 作者:<% for (var i = 0; i < post.authors.length - 1; i++) { %> + <%= post.authors[i]%> , + <% }%> <%= post.authors[post.authors.length - 1] %> +
+ +<% } %> \ No newline at end of file