diff --git a/lib/index.js b/lib/index.js
index e735a37..8103df5 100755
--- a/lib/index.js
+++ b/lib/index.js
@@ -43,6 +43,22 @@ function generateXML(data) {
let fullContent = '' + img + ' ' + item.title + '
' + menu + '' + item.content;
item_values.push({'turbo:content': {_cdata: fullContent}});
+
+ let relatedLink = function(related) {
+ return (
+ '' +
+ related.text +
+ ''
+ );
+ };
+ ifTruePush(item.related, item_values, {
+ 'yandex:related': item.related.map(relatedLink).join('')
+ });
+
channel.push({item: item_values});
});
@@ -80,7 +96,8 @@ function YTurbo(options, items) {
author: options.author,
date: options.date || options.pubDate,
content: options.content,
- menu: options.menu
+ menu: options.menu,
+ related: options.related
};
this.items.push(item);