hexo-generator-feed
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -46,5 +46,8 @@ var ejs = require('ejs'), | ||
var posts = locals.posts.sort('date', -1); | ||
if (feedConfig.limit) posts = posts.limit(feedConfig.limit); | ||
var xml = template({ | ||
config: config, | ||
posts: locals.posts.sort('date', -1).limit(feedConfig.limit), | ||
posts: posts, | ||
feed_url: config.root + feedConfig.path | ||
@@ -55,2 +58,2 @@ }); | ||
callback(); | ||
}; | ||
}; |
{ | ||
"name": "hexo-generator-feed", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Feed generator plugin for Hexo", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -24,2 +24,2 @@ # Feed generator | ||
- **path** - Feed path. (Default: atom.xml/rss2.xml) | ||
- **limit** - Maximum number of posts in the feed | ||
- **limit** - Maximum number of posts in the feed (Use `0` or `false` to show all posts) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6419
50