hexo-generator-feed
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -12,3 +12,3 @@ 'use strict'; | ||
if (data.match(/type=['|"]?application\/(atom|rss)\+xml['|"]?/i)) return; | ||
if (data.match(/type=['|"]?application\/(atom|rss)\+xml['|"]?/i) || feed.autodiscovery === false) return; | ||
@@ -15,0 +15,0 @@ type.forEach((feedType, i) => { |
@@ -32,2 +32,7 @@ 'use strict'; | ||
if (posts.length <= 0) { | ||
feedConfig.autodiscovery = false; | ||
return; | ||
} | ||
if (feedConfig.limit) posts = posts.limit(feedConfig.limit); | ||
@@ -34,0 +39,0 @@ |
{ | ||
"name": "hexo-generator-feed", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Feed generator plugin for Hexo", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -15,2 +15,3 @@ # hexo-generator-feed | ||
- Hexo 4: 2.x | ||
- Hexo 3: 1.x | ||
@@ -17,0 +18,0 @@ - Hexo 2: 0.x |
Sorry, the diff of this file is not supported yet
12869
114
66