diff --git a/layout/_partial/archive.ejs b/layout/_partial/archive.ejs index 52fbf4b..ef1557c 100755 --- a/layout/_partial/archive.ejs +++ b/layout/_partial/archive.ejs @@ -4,7 +4,7 @@ <% if (is_home()) { %> <% site.posts.each(function(post){ %> <% if (post.top) { %> - <% if (page.type == undefined || post.type == page.type) { %> + <% if (page.group == undefined || post.group == page.group) { %>
<%- partial('post', {post: post}) %>
diff --git a/layout/list.ejs b/layout/list.ejs index c41d87e..5bb4af8 100755 --- a/layout/list.ejs +++ b/layout/list.ejs @@ -4,7 +4,7 @@
<% if (!page.prev) { %> <% site.posts.sort(page.sort ? page.sort : "-date").each(function(post){ %> - <% if (post.type && post.type == page.type) { %> + <% if (post.group && post.group == page.group) { %> <% if (post.top) { %>
<%- partial('_partial/post', {post: post, index: false}) %> @@ -14,7 +14,7 @@ <% }) %> <% } %> <% site.posts.sort(page.sort ? page.sort : "-date").each(function(post){ %> - <% if (post.type && post.type == page.type) { %> + <% if (post.group && post.group == page.group) { %> <% if (!post.top) { %>
<%- partial('_partial/post', {post: post, index: false}) %>