Rubocop cleanup for lib/jekyll/layout.rb
This commit is contained in:
parent
65e78b3280
commit
de39107c76
|
@ -18,7 +18,6 @@ AllCops:
|
||||||
- lib/jekyll/entry_filter.rb
|
- lib/jekyll/entry_filter.rb
|
||||||
- lib/jekyll/filters.rb
|
- lib/jekyll/filters.rb
|
||||||
- lib/jekyll/frontmatter_defaults.rb
|
- lib/jekyll/frontmatter_defaults.rb
|
||||||
- lib/jekyll/layout.rb
|
|
||||||
- lib/jekyll/liquid_renderer/table.rb
|
- lib/jekyll/liquid_renderer/table.rb
|
||||||
- lib/jekyll/liquid_renderer.rb
|
- lib/jekyll/liquid_renderer.rb
|
||||||
- lib/jekyll/reader.rb
|
- lib/jekyll/reader.rb
|
||||||
|
|
|
@ -58,7 +58,9 @@ module Jekyll
|
||||||
# Returns a String path which represents the relative path
|
# Returns a String path which represents the relative path
|
||||||
# from the site source to this layout
|
# from the site source to this layout
|
||||||
def relative_path
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue