diff --git a/lib/index.js b/lib/index.js index 4b25c58..cc718e4 100755 --- a/lib/index.js +++ b/lib/index.js @@ -48,7 +48,7 @@ function addRelated(related, itemValues, relatedfinity) { function items(items, channel) { items.forEach(function (item) { let item_values = []; - item_values.push({_attr: {'turbo': 'true'}}); + item_values.push({_attr: {'turbo': item.turboEnabled ? 'true' : 'false'}}); item_values.push({link: item.url}); ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource}); @@ -143,6 +143,7 @@ function itemData(data) { turboSource: data.turboSource || '', turboTopic: data.turboTopic || '', goals: data.goals || [], + turboEnabled: data.turboEnabled || true, }; } /**