diff --git a/bridgetown-core/lib/bridgetown-core/filters.rb b/bridgetown-core/lib/bridgetown-core/filters.rb index b4b850faa..e971b5a65 100644 --- a/bridgetown-core/lib/bridgetown-core/filters.rb +++ b/bridgetown-core/lib/bridgetown-core/filters.rb @@ -102,7 +102,7 @@ def uri_escape(input) def obfuscate_link(input, prefix = "mailto") link = "#{input}" script = "" diff --git a/bridgetown-core/lib/bridgetown-core/helpers.rb b/bridgetown-core/lib/bridgetown-core/helpers.rb index 7e6acb695..33acea8ed 100644 --- a/bridgetown-core/lib/bridgetown-core/helpers.rb +++ b/bridgetown-core/lib/bridgetown-core/helpers.rb @@ -221,7 +221,7 @@ def slotted?(name) view.view_context.resource end - return unless resource + return false unless resource name = name.to_s resource.slots.any? do |slot|