diff --git a/.rubocop.yml b/.rubocop.yml index 51f96642..b7dd2530 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -18,7 +18,6 @@ AllCops: - lib/jekyll/entry_filter.rb - lib/jekyll/filters.rb - lib/jekyll/frontmatter_defaults.rb - - lib/jekyll/layout.rb - lib/jekyll/liquid_renderer/table.rb - lib/jekyll/liquid_renderer.rb - lib/jekyll/reader.rb diff --git a/lib/jekyll/layout.rb b/lib/jekyll/layout.rb index 72005277..690d86fb 100644 --- a/lib/jekyll/layout.rb +++ b/lib/jekyll/layout.rb @@ -58,7 +58,9 @@ module Jekyll # Returns a String path which represents the relative path # from the site source to this layout def relative_path - @relative_path ||= Pathname.new(path).relative_path_from(Pathname.new(@base_dir)).to_s + @relative_path ||= Pathname.new(path).relative_path_from( + Pathname.new(@base_dir) + ).to_s end end end