Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assemble-contrib-sitemap

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemble-contrib-sitemap - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc