hexo-generator-feed
Advanced tools
Comparing version 0.0.6 to 0.0.7
var util = hexo.util, | ||
file = util.file, | ||
extend = hexo.extend, | ||
route = hexo.route, | ||
xml = require('jstoxml'); | ||
extend.generator.register(function(locals, render, callback){ | ||
var publicDir = hexo.public_dir, | ||
config = hexo.config; | ||
var config = hexo.config; | ||
console.log('Generating feed.'); | ||
var content = [ | ||
@@ -100,3 +98,4 @@ {title: '<![CDATA[' + config.title + ']]>'}, | ||
file.write(publicDir + 'atom.xml', result, callback); | ||
route.set('atom.xml', result); | ||
callback(); | ||
}); |
{ | ||
"name": "hexo-generator-feed", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Feed generator plugin for Hexo", | ||
@@ -17,3 +17,3 @@ "main": "index", | ||
"engines": { | ||
"hexo": "*" | ||
"hexo": "0.3.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "dependencies": { |
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
3265