Skip to content

Commit

Permalink
paginate option cannot be 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Aug 6, 2013
1 parent 6eec3a7 commit d19c698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def backwards_compatibilize
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
Expand Down

0 comments on commit d19c698

Please sign in to comment.