master
xaoxuu 4 years ago
parent 9953973783
commit b73c3fd6b2
  1. 6
      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)})
}
})

Loading…
Cancel
Save