group short title

master
xaoxuu 4 years ago
parent b73c3fd6b2
commit d2581d6ab2
  1. 4
      layout/_widget/group.ejs

@ -3,12 +3,12 @@ if (page.layout == 'page' || page.layout == 'post') {
var rows = new Array();
site.posts.each(function(post){
if (post.title && post.path && (post.group == item.id)) {
rows.push({name: post.title, url: post.path, order: (post.order || 0)})
rows.push({name: post.short_title || post.title, url: post.path, order: (post.order || 0)})
}
})
site.pages.each(function(post){
if (post.title && post.path && (post.group == item.id)) {
rows.push({name: post.title, url: post.path, order: (post.order || 0)})
rows.push({name: post.short_title || post.title, url: post.path, order: (post.order || 0)})
}
})
rows.sort(function(a,b){

Loading…
Cancel
Save