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}) %>