From 5f1fced8764c613a1fdead734fee81695691e498 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 3 Apr 2019 15:35:28 +0800 Subject: [PATCH] update --- layout/list.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/list.ejs b/layout/list.ejs index 2e72eb5..c79690f 100755 --- a/layout/list.ejs +++ b/layout/list.ejs @@ -1,7 +1,7 @@
<% if (site.posts && site.posts.length > 0) { %>
- <% site.posts.each(function(p){ %> + <% site.posts.sort(page.sort ? page.sort : "-date").each(function(p){ %> <% if (p.type == page.type) { %>
<%- partial('_partial/post', {post: p, index: false}) %>