paginate option cannot be 0.

This commit is contained in:
Parker Moore 2013-08-06 21:04:15 +02:00
parent 6eec3a7942
commit d19c6983f2
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ module Jekyll
def fix_common_issues
config = clone
if config.has_key?('paginate') && (!config['paginate'].is_a?(Integer) || config['paginate'] < 0)
if config.has_key?('paginate') && (!config['paginate'].is_a?(Integer) || config['paginate'] < 1)
Jekyll.logger.warn "Config Warning:", "The `paginate` key must be a" +
" positive integer or nil. It's currently set to '#{config['paginate'].inspect}'."
config['paginate'] = nil