Renderer#invalid_layout? should check if document is an excerpt
This commit is contained in:
parent
8014c54ee0
commit
ac6bbc1906
|
@ -126,7 +126,7 @@ module Jekyll
|
|||
#
|
||||
# Returns true if the layout is invalid, false if otherwise
|
||||
def invalid_layout?(layout)
|
||||
!document.data["layout"].nil? && layout.nil?
|
||||
!document.data["layout"].nil? && layout.nil? && !(document.is_a? Jekyll::Excerpt)
|
||||
end
|
||||
|
||||
# Render layouts and place given content inside.
|
||||
|
|
Loading…
Reference in New Issue