Correct the semantics of checking for jekyll-paginate

This commit is contained in:
Parker Moore 2015-03-16 15:48:50 -07:00
parent bb57c80478
commit eb2fc89776
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ module Jekyll
end end
def deprecation_checks def deprecation_checks
pagination_included = (!(site.config['gems'] || []).include?('jekyll-paginate') || !defined?(Jekyll::Paginate)) pagination_included = (site.config['gems'] || []).include?('jekyll-paginate') || defined?(Jekyll::Paginate)
if site.config['paginate'] && pagination_included if site.config['paginate'] && !pagination_included
Jekyll::Deprecator.deprecation_message "You appear to have pagination " + Jekyll::Deprecator.deprecation_message "You appear to have pagination " +
"turned on, but you haven't included the `jekyll-paginate` gem. " + "turned on, but you haven't included the `jekyll-paginate` gem. " +
"Ensure you have `gems: [jekyll-paginate]` in your configuration file." "Ensure you have `gems: [jekyll-paginate]` in your configuration file."