Module: Jekyll::DoctorIgnoreLayout
- Defined in:
- lib/jekyll/commands/doctor_ignore_layout.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/jekyll/commands/doctor_ignore_layout.rb', line 5 def self.included(base) base.class_eval do class << self private alias :original_allow_used_permalink? :allow_used_permalink? def allow_used_permalink?(item) return true if item.respond_to?(:site) && item.respond_to?(:data) && item.site.ignored_layout?(item.data['layout']) original_allow_used_permalink? item end end end end |