Skip to content

Commit

Permalink
bugfix: option.robot was ignored and always true
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoebl committed Feb 15, 2014
1 parent 3a7dab2 commit 0159123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
npm-debug.log
*.sublime-*

# IntelliJ IDEA files (the best IDE in case you don't know it)
*.iml
.idea
2 changes: 1 addition & 1 deletion sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function (params, callback) {
var pkg = grunt.file.readJSON('package.json');

options.homepage = options.homepage || pkg.homepage;
options.robot = options.robot || true;
options.robot = options.robot !== false;
options.changefreq = options.changefreq || 'weekly';
options.priority = (options.priority || 0.5).toString();
options.relativedest = options.relativedest || false;
Expand Down

0 comments on commit 0159123

Please sign in to comment.