diff --git a/lib/json_generator.js b/lib/json_generator.js index 297576a..f3d0671 100644 --- a/lib/json_generator.js +++ b/lib/json_generator.js @@ -99,27 +99,6 @@ module.exports = function(locals){ temp_post.content = temp_post.content.replace(/<[^>]+>/g, '') } } - if (page.tags && page.tags.length > 0) { - temp_page.tags = []; - page.tags.each(function (tag) { - if (permalinks) { - temp_page.tags.push([ tag.name, tag.permalink ]); - } else { - temp_page.tags.push(tag.name); - } - }); - } - if (page.categories && page.categories.length > 0) { - temp_page.categories = []; - (page.categories.each || page.categories.forEach)(function (item) { - temp_page.categories.push(item); - if (permalinks) { - temp_page.categories.push([item.name, item.permalink]); - } else { - temp_page.categories.push(item.name); - } - }); - } res[index] = temp_page; index += 1; });