Added trailing slash to pretty url template
Signed-off-by: Nick Quaranto <nick@quaran.to>
This commit is contained in:
parent
52fbd940c3
commit
e0ceee2e89
|
|
@ -114,7 +114,7 @@ module Jekyll
|
||||||
def template
|
def template
|
||||||
case self.site.permalink_style
|
case self.site.permalink_style
|
||||||
when :pretty
|
when :pretty
|
||||||
"/:categories/:year/:month/:day/:title"
|
"/:categories/:year/:month/:day/:title/"
|
||||||
when :none
|
when :none
|
||||||
"/:categories/:title.html"
|
"/:categories/:title.html"
|
||||||
when :date
|
when :date
|
||||||
|
|
|
||||||
|
|
@ -128,8 +128,8 @@ class TestPost < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
should "process the url correctly" do
|
should "process the url correctly" do
|
||||||
assert_equal "/:categories/:year/:month/:day/:title", @post.template
|
assert_equal "/:categories/:year/:month/:day/:title/", @post.template
|
||||||
assert_equal "/2008/10/19/foo-bar", @post.url
|
assert_equal "/2008/10/19/foo-bar/", @post.url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue