From b73c3fd6b273c5623fa497efafc4e2e87d324aa6 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 20 Apr 2020 00:12:56 +0800 Subject: [PATCH] group --- layout/_widget/group.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/_widget/group.ejs b/layout/_widget/group.ejs index 2721698..b751a70 100755 --- a/layout/_widget/group.ejs +++ b/layout/_widget/group.ejs @@ -1,13 +1,13 @@ <% -if ((page.layout == 'page' || page.layout == 'post') && page.group && page.group.length > 0) { +if (page.layout == 'page' || page.layout == 'post') { var rows = new Array(); site.posts.each(function(post){ - if (post.title && post.path && (post.group == page.group)) { + if (post.title && post.path && (post.group == item.id)) { rows.push({name: post.title, url: post.path, order: (post.order || 0)}) } }) site.pages.each(function(post){ - if (post.title && post.path && (post.group == page.group)) { + if (post.title && post.path && (post.group == item.id)) { rows.push({name: post.title, url: post.path, order: (post.order || 0)}) } })