Skip to content

Commit

Permalink
Added trailing slash to pretty url template
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Quaranto <nick@quaran.to>
  • Loading branch information
eugenebolshakov authored and qrush committed Jun 23, 2009
1 parent 52fbd94 commit e0ceee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll/post.rb
Expand Up @@ -114,7 +114,7 @@ def permalink
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
Expand Down
4 changes: 2 additions & 2 deletions test/test_post.rb
Expand Up @@ -128,8 +128,8 @@ def do_render(post)
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

Expand Down

0 comments on commit e0ceee2

Please sign in to comment.