Merge pull request #2696 from jekyll/jekyll-autogeneration-disabled

This commit is contained in:
Parker Moore 2014-08-06 15:27:16 -04:00
commit 5eacc9e831
1 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,12 @@ module Jekyll
else
build(site, options)
end
watch(site, options) if options['watch']
if options.fetch('watch', false)
watch(site, options)
else
Jekyll.logger.info "Auto-regeneration:", "disabled. Use --watch to enable."
end
end
# Build your Jekyll site.