mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Fix Page#relative_path so that it consistently does NOT have the prepending slash (previously inconsistent)
Fixes for #4946
This commit is contained in:
@@ -17,7 +17,7 @@ class TestFrontMatterDefaults < JekyllUnitTest
|
||||
}]
|
||||
}))
|
||||
@site.process
|
||||
@affected = @site.pages.find { |page| page.relative_path == "/contacts/bar.html" }
|
||||
@affected = @site.pages.find { |page| page.relative_path == "contacts/bar.html" }
|
||||
@not_affected = @site.pages.find { |page| page.relative_path == "about.html" }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user