assemble-contrib-sitemap
Advanced tools
Comparing version 0.1.9 to 0.2.0
{ | ||
"name": "assemble-contrib-sitemap", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "Sitemap generator plugin for Assemble", | ||
@@ -5,0 +5,0 @@ "homepage": "http://assemble.io/plugins", |
@@ -170,2 +170,3 @@ # assemble-contrib-sitemap [![NPM version](https://badge.fury.io/js/assemble-contrib-sitemap.png)](http://badge.fury.io/js/assemble-contrib-sitemap) [![Build Status](https://travis-ci.org/assemble/assemble-contrib-sitemap.png)](https://travis-ci.org/assemble/assemble-contrib-sitemap) | ||
* 2013-02-05 v0.2.0 Generation of robots.txt will now respect the relativedest option. | ||
* 2013-02-02 v0.1.9 Fix sitemap destination | ||
@@ -187,2 +188,2 @@ * 2013-01-28 v0.1.8 Use external library Get pages from assemble object | ||
_This file was generated on Sunday, February 2, 2014._ | ||
_This file was generated on Thursday, February 5, 2014._ |
@@ -49,2 +49,7 @@ /* | ||
// Return the relative destination if the option is enabled | ||
var getRelativeDest = function(relativedest, file) { | ||
return (relativedest ? file.dest.replace(file.filePair.orig.dest + "/", "") : file.dest ); | ||
}; | ||
async.forEach(pages, function (file, next) { | ||
@@ -63,3 +68,3 @@ | ||
if(exclusion.indexOf(file.basename) !== -1) { | ||
robots.push('Disallow: /' + file.dest); | ||
robots.push('Disallow: /' + getRelativeDest(relativedest, file)); | ||
return; | ||
@@ -70,3 +75,3 @@ } | ||
url: { | ||
loc: url + '/' + (relativedest ? file.dest.replace(file.filePair.orig.dest+"/","") : file.dest ), | ||
loc: url + '/' + getRelativeDest(relativedest, file), | ||
lastmod: date.toISOString(), | ||
@@ -73,0 +78,0 @@ changefreq: changefreq, |
User-agent: * | ||
Disallow: /test/actual/sitemap_relative/404.html | ||
Disallow: /test/actual/sitemap_relative/foo.html | ||
Disallow: /404.html | ||
Disallow: /foo.html |
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
21954
182
187