From 40e44a2051a9387dd68be9ff98574d130c2dd9d6 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Sat, 13 Apr 2013 18:45:40 +0200 Subject: [PATCH] do not force the permalink to be a dir if it ends on .html Fixes #798. --- lib/jekyll/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 5ea56898..7e01f635 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -255,7 +255,7 @@ module Jekyll def destination(dest) # The url needs to be unescaped in order to preserve the correct filename path = File.join(dest, CGI.unescape(self.url)) - path = File.join(path, "index.html") if template[/\.html$/].nil? + path = File.join(path, "index.html") if path[/\.html$/].nil? path end