Module: Jekyll::RendererIgnoreLayout
- Defined in:
- lib/jekyll/renderer_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 |
# File 'lib/jekyll/renderer_ignore_layout.rb', line 5 def self.included(base) base.class_eval do alias :original_invalid_layout? :invalid_layout? # Only write the document when its layout is not ignored def invalid_layout?(layout) return false if site.ignored_layout?(document.data['layout']) original_invalid_layout? layout end end end |