hexo-generator-feed
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -22,5 +22,19 @@ var ejs = require('ejs'); | ||
var url; | ||
// Sorry for that, it is hexo URL handling way. | ||
if (config.root === '/'){ | ||
url = config.url + config.root; | ||
} | ||
else | ||
{ | ||
url = config.url + '/'; | ||
} | ||
// And sorry for that too. | ||
url = url.replace(/([^:])\/\//g, '$1/'); | ||
var xml = template({ | ||
config: config, | ||
url: url, | ||
posts: posts, | ||
@@ -27,0 +41,0 @@ feed_url: config.root + feedConfig.path |
{ | ||
"name": "hexo-generator-feed", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Feed generator plugin for Hexo", | ||
@@ -31,2 +31,3 @@ "main": "index", | ||
"chai": "^1.9.1", | ||
"cheerio": "^0.19.0", | ||
"coveralls": "^2.11.2", | ||
@@ -33,0 +34,0 @@ "gulp": "^3.8.9", |
Sorry, the diff of this file is not supported yet
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
7311
58
12