diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 4171c735..914cfd59 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -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 diff --git a/test/test_post.rb b/test/test_post.rb index b6585cc0..f6816be0 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -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