Remove 'none' as a valid layout
This commit is contained in:
parent
7586538432
commit
2785d702e2
|
@ -98,7 +98,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? && document.data["layout"] != "none" && layout.nil?
|
!document.data["layout"].nil? && layout.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Render layouts and place given content inside.
|
# Render layouts and place given content inside.
|
||||||
|
|
Loading…
Reference in New Issue