From a0109c28ae84369fec234f5cec97d9b28895ba19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 3 May 2021 23:24:52 +0800 Subject: [PATCH] =?UTF-8?q?layout:=E6=9B=B4=E6=96=B0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=92=8C=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/grid/layout/partial/post/list.ejs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/grid/layout/partial/post/list.ejs b/themes/grid/layout/partial/post/list.ejs index 9becf57..49ba07f 100644 --- a/themes/grid/layout/partial/post/list.ejs +++ b/themes/grid/layout/partial/post/list.ejs @@ -7,8 +7,9 @@
-
最后更新:<%= date(post.date, "YYYY-MM-DD HH:mm" ) %> -
+
发布:<%= date(post.date, "YYYY-MM-DD HH:mm") %>
+ <% let updateValid = moment(post.update).isValid() %> +
更新:<%= date(updateValid ? post.update : post.date, "YYYY-MM-DD HH:mm") %>
<% if (post.categories.length> 0) { %>
知识分类: <%- list_categories(post.categories, {