|
|
@ -184,13 +184,19 @@ export default class Render {
|
|
|
|
let page = pages[i];
|
|
|
|
let page = pages[i];
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: filter for deleted and unpublished pages
|
|
|
|
//TODO: filter for deleted and unpublished pages
|
|
|
|
if (_.includes(page.metadata.tags, tag.tag_name)) {
|
|
|
|
if (
|
|
|
|
pageList.push({
|
|
|
|
page.metedata.deleted === false &&
|
|
|
|
title: page.metadata.title,
|
|
|
|
page.metadata.published === true
|
|
|
|
slug: page.metadata.slug
|
|
|
|
) {
|
|
|
|
});
|
|
|
|
if (_.includes(page.metadata.tags, tag.tag_name)) {
|
|
|
|
|
|
|
|
pageList.push({
|
|
|
|
|
|
|
|
title: page.metadata.title,
|
|
|
|
|
|
|
|
slug: page.metadata.slug
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log('TAG LIST', tag.tag_name + ' count:' + pageList.length);
|
|
|
|
renderList.push({ tag: tag.tag_name, tag_list: pageList, slug: tag.slug });
|
|
|
|
renderList.push({ tag: tag.tag_name, tag_list: pageList, slug: tag.slug });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let response = [];
|
|
|
|
let response = [];
|
|
|
|