Socket
Socket
Sign inDemoInstall

hexo-generator-feed

Package Overview
Dependencies
2
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

7

feed.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc