Comparing version 1.0.0 to 1.0.1
@@ -16,3 +16,3 @@ 'use strict'; | ||
channel.push({title: {_cdata: data.title}}); | ||
channel.push({link: data.link || 'http://github.com/lightair/yandex-turbo'}); | ||
channel.push({link: data.link || 'http://github.com/LightAir/turbo-rss'}); | ||
channel.push({description: {_cdata: data.description || data.title}}); | ||
@@ -37,3 +37,3 @@ channel.push({language: 'ru'}); | ||
if (item.img) { | ||
if (item.image_url) { | ||
img = '<figure><img src="' + item.image_url + '" /></figure>'; | ||
@@ -46,3 +46,3 @@ } | ||
let fullContent = '<header>' + img + ' <h1>' + item.title + '</h1>' + item.content + menu + '</header>'; | ||
let fullContent = '<header>' + img + ' <h1>' + item.title + '</h1>' + menu + '</header>' + item.content; | ||
@@ -72,3 +72,3 @@ item_values.push({'turbo:content': {_cdata: fullContent}}); | ||
this.title = options.title || 'Channel Yandex RSS'; | ||
this.title = options.title || 'Untitled'; | ||
this.description = options.description || ''; | ||
@@ -84,5 +84,6 @@ this.link = options.link; | ||
options = options || {}; | ||
let item = { | ||
var item = { | ||
title: options.title || 'No title', | ||
description: options.description || '', | ||
image_url: options.image_url, | ||
url: options.url, | ||
@@ -89,0 +90,0 @@ author: options.author, |
{ | ||
"name": "turbo-rss", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "RSS based, feed generator for Yandex turbo", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,3 +0,5 @@ | ||
## turbo-rss [![Build Status](http://img.shields.io/travis/lightair/turbo-rss.svg)](https://travis-ci.org/lightair/turbo-rss) | ||
# WIP | ||
## turbo-rss [![Build Status](https://travis-ci.org/LightAir/turbo-rss.svg)](https://travis-ci.org/lightair/turbo-rss) | ||
>RSS based, feed generator for Yandex turbo. | ||
@@ -4,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116
239
19448