From 61ddfbf724708f2828aa6839d4141afa961e691b Mon Sep 17 00:00:00 2001 From: Wang Wei Date: Thu, 8 Apr 2021 19:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=96=87=E7=AB=A0title=E4=B8=8B?= =?UTF-8?q?=E6=96=B9=E4=B8=BA=E6=AF=8F=E7=AF=87=E6=96=87=E7=AB=A0=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BD=9C=E8=80=85=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/post/author.ejs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 layout/_partial/post/author.ejs 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