diff --git a/sites/i.mjh.nz/i.mjh.nz.config.js b/sites/i.mjh.nz/i.mjh.nz.config.js index 862bef85..c7e44c4d 100644 --- a/sites/i.mjh.nz/i.mjh.nz.config.js +++ b/sites/i.mjh.nz/i.mjh.nz.config.js @@ -31,7 +31,8 @@ module.exports = { ...item, title: getTitle(item), description: getDescription(item), - categories: getCategories(item) + categories: getCategories(item), + icon: getIcon(item) } }) @@ -160,6 +161,10 @@ function getCategories(item) { return item.category.map(c => c.value) } +function getIcon(item) { + return item.icon && item.icon.length ? item.icon[0].src : null +} + function parseItems(content, channel, date) { try { const curr_day = date