Renderer#invalid_layout? should check if document is an excerpt

This commit is contained in:
Parker Moore 2016-08-30 14:14:52 -07:00
parent 8014c54ee0
commit ac6bbc1906
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ module Jekyll
# #
# Returns true if the layout is invalid, false if otherwise # Returns true if the layout is invalid, false if otherwise
def invalid_layout?(layout) def invalid_layout?(layout)
!document.data["layout"].nil? && layout.nil? !document.data["layout"].nil? && layout.nil? && !(document.is_a? Jekyll::Excerpt)
end end
# Render layouts and place given content inside. # Render layouts and place given content inside.