Say happy things when everything is cool

This commit is contained in:
Parker Moore 2013-05-12 01:07:58 +02:00
parent 0e82b4eb2f
commit 6167747440
1 changed files with 7 additions and 2 deletions

View File

@ -6,17 +6,22 @@ module Jekyll
site = Jekyll::Site.new(options) site = Jekyll::Site.new(options)
site.read site.read
deprecate_relative_permalinks(site) unless deprecated_relative_permalinks(site)
Jekyll::Logger.info "Your test results", "are in. Everything looks fine."
end
end end
def deprecate_relative_permalinks(site) def deprecated_relative_permalinks(site)
contains_deprecated_pages = false
site.pages.each do |page| site.pages.each do |page|
if page.uses_relative_permalinks if page.uses_relative_permalinks
Jekyll::Logger.warn "Deprecation:", "'#{page.path}' uses relative" + Jekyll::Logger.warn "Deprecation:", "'#{page.path}' uses relative" +
" permalinks which will be automatically" + " permalinks which will be automatically" +
" deprecated in Jekyll v1.1." " deprecated in Jekyll v1.1."
contains_deprecated_pages = true
end end
end end
contains_deprecated_pages
end end
end end
end end