From b4ece2a5826cab417ad90ed4d15f847a6a01ffb3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 21 Feb 2020 12:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BE=BF=E4=BA=8E=E7=90=86=E8=A7=A3?= =?UTF-8?q?=EF=BC=8Ctype=E6=94=B9=E4=B8=BAgroup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/archive.ejs | 2 +- layout/list.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}) %>