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, {