Exclude excerpts from layout checks
This commit is contained in:
parent
c8e0fcfcdf
commit
4bd5614f4c
|
@ -159,7 +159,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)
|
||||||
!data["layout"].nil? && data["layout"] != "none" && layout.nil?
|
!data["layout"].nil? && data["layout"] != "none" && layout.nil? && self.class.to_s != "Jekyll::Excerpt"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Recursively render layouts
|
# Recursively render layouts
|
||||||
|
|
Loading…
Reference in New Issue