Exclude excerpts from layout checks

This commit is contained in:
Alfred Xing 2014-07-20 12:57:40 -07:00
parent c8e0fcfcdf
commit 4bd5614f4c
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ module Jekyll
#
# Returns true if the layout is invalid, false if otherwise
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
# Recursively render layouts