Check default front matter scope against symbols (#8393)
Merge pull request 8393
This commit is contained in:
parent
6d30bac845
commit
34a78e1ea2
|
@ -157,7 +157,7 @@ module Jekyll
|
||||||
# Returns true if either of the above conditions are satisfied,
|
# Returns true if either of the above conditions are satisfied,
|
||||||
# otherwise returns false
|
# otherwise returns false
|
||||||
def applies_type?(scope, type)
|
def applies_type?(scope, type)
|
||||||
!scope.key?("type") || scope["type"].eql?(type.to_s)
|
!scope.key?("type") || type&.to_sym.eql?(scope["type"].to_sym)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks if a given set of default values is valid
|
# Checks if a given set of default values is valid
|
||||||
|
|
Loading…
Reference in New Issue