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) { %>
知识分类: