From e0ceee2e89cc4102e618d9c4a3aa721ee79f947e Mon Sep 17 00:00:00 2001 From: eugenebolshakov Date: Wed, 6 May 2009 18:56:02 +0400 Subject: [PATCH] Added trailing slash to pretty url template Signed-off-by: Nick Quaranto --- lib/jekyll/post.rb | 2 +- test/test_post.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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