Added trailing slash to pretty url template

Signed-off-by: Nick Quaranto <nick@quaran.to>
This commit is contained in:
eugenebolshakov 2009-05-06 18:56:02 +04:00 committed by Nick Quaranto
parent 52fbd940c3
commit e0ceee2e89
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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