From 0d2309b72389156297f1994929e15bc2b095fbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 5 May 2021 21:59:34 +0800 Subject: [PATCH] =?UTF-8?q?layout:=E4=BF=AE=E6=AD=A3=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E5=AF=B9=E4=BA=8E=E6=97=A5=E6=9C=9F=E6=97=B6=E9=97=B4=E7=9A=84?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E4=BA=A7=E7=94=9F=E7=9A=84=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grid/layout/partial/post/list.ejs b/themes/grid/layout/partial/post/list.ejs index 49ba07f..310ef0d 100644 --- a/themes/grid/layout/partial/post/list.ejs +++ b/themes/grid/layout/partial/post/list.ejs @@ -8,7 +8,7 @@
发布:<%= date(post.date, "YYYY-MM-DD HH:mm") %>
- <% let updateValid = moment(post.update).isValid() %> + <% let updateValid = typeof(post.update) == 'string' %>
更新:<%= date(updateValid ? post.update : post.date, "YYYY-MM-DD HH:mm") %>
<% if (post.categories.length> 0) { %>
知识分类: