mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Compare commits
1 Commits
master
...
slash-eq-h
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0e1f8061c |
@@ -217,8 +217,11 @@ module Jekyll
|
||||
def destination(base_directory)
|
||||
dest = site.in_dest_dir(base_directory)
|
||||
path = site.in_dest_dir(dest, URL.unescape_path(url))
|
||||
path = File.join(path, "index.html") if url.end_with?("/")
|
||||
path << output_ext unless path.end_with? output_ext
|
||||
if url.end_with? "/"
|
||||
path = File.join(path, "index.html")
|
||||
else
|
||||
path << output_ext unless path.end_with? output_ext
|
||||
end
|
||||
path
|
||||
end
|
||||
|
||||
|
||||
4
test/source/_with.dots/mit.txt
Normal file
4
test/source/_with.dots/mit.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
---
|
||||
|
||||
I should be output to `/with.dots/mit/index.html`.
|
||||
5
test/source/contacts/humans.txt
Normal file
5
test/source/contacts/humans.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
permalink: /contacts/humans/
|
||||
---
|
||||
|
||||
I should be output to `/contacts/humans/index.html`.
|
||||
@@ -204,7 +204,7 @@ class TestCollections < JekyllUnitTest
|
||||
end
|
||||
|
||||
should "contain one document" do
|
||||
assert_equal 3, @collection.docs.size
|
||||
assert_equal 4, @collection.docs.size
|
||||
end
|
||||
|
||||
should "allow dots in the filename" do
|
||||
|
||||
@@ -285,7 +285,7 @@ class TestFilters < JekyllUnitTest
|
||||
assert_equal 2, g["items"].size
|
||||
when ""
|
||||
assert g["items"].is_a?(Array), "The list of grouped items for '' is not an Array."
|
||||
assert_equal 12, g["items"].size
|
||||
assert_equal 13, g["items"].size
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -178,6 +178,7 @@ class TestSite < JekyllUnitTest
|
||||
environment.html
|
||||
exploit.md
|
||||
foo.md
|
||||
humans.txt
|
||||
index.html
|
||||
index.html
|
||||
main.scss
|
||||
|
||||
Reference in New Issue
Block a user