diff --git a/lib/jekyll/frontmatter_defaults.rb b/lib/jekyll/frontmatter_defaults.rb index afafec1f..7f4e5249 100644 --- a/lib/jekyll/frontmatter_defaults.rb +++ b/lib/jekyll/frontmatter_defaults.rb @@ -93,9 +93,9 @@ module Jekyll # path - the path to check for # type - the type (:post, :page or :draft) to check for # - # Returns true if the scope applies to the given path and type + # Returns true if the scope applies to the given type and path def applies?(scope, path, type) - applies_path?(scope, path) && applies_type?(scope, type) + applies_type?(scope, type) && applies_path?(scope, path) end # rubocop:disable Metrics/AbcSize