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
|
||||
case self.site.permalink_style
|
||||
when :pretty
|
||||
"/:categories/:year/:month/:day/:title"
|
||||
"/:categories/:year/:month/:day/:title/"
|
||||
when :none
|
||||
"/:categories/:title.html"
|
||||
when :date
|
||||
|
|
|
@ -128,8 +128,8 @@ class TestPost < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "process the url correctly" do
|
||||
assert_equal "/:categories/:year/:month/:day/:title", @post.template
|
||||
assert_equal "/2008/10/19/foo-bar", @post.url
|
||||
assert_equal "/:categories/:year/:month/:day/:title/", @post.template
|
||||
assert_equal "/2008/10/19/foo-bar/", @post.url
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue